File: /var/www/html/wpbiancoarte/wp-content/plugins/qi-blocks/assets/dist/image-gallery.js
(()=>{var e={2:(e,t,n)=>{var o=n(4335)(Object.keys,Object);e.exports=o},80:(e,t,n)=>{var o=n(6025),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},270:(e,t,n)=>{var o=n(7068),r=n(346);e.exports=function e(t,n,l,a,i){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:o(t,n,l,a,e,i))}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},689:(e,t,n)=>{var o=n(2),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,l,a,i){var s=1&n,u=o(e),c=u.length;if(c!=o(t).length&&!s)return!1;for(var p=c;p--;){var m=u[p];if(!(s?m in t:r.call(t,m)))return!1}var d=i.get(e),b=i.get(t);if(d&&b)return d==t&&b==e;var f=!0;i.set(e,t),i.set(t,e);for(var g=s;++p<c;){var h=e[m=u[p]],y=t[m];if(l)var v=s?l(y,h,m,t,e,i):l(h,y,m,e,t,i);if(!(void 0===v?h===y||a(h,y,n,l,i):v)){f=!1;break}g||(g="constructor"==m)}if(f&&!g){var k=e.constructor,_=t.constructor;k==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof _&&_ instanceof _||(f=!1)}return i.delete(e),i.delete(t),f}},828:(e,t,n)=>{var o=n(7556);e.exports=function(e){return null==e?"":o(e)}},882:e=>{e.exports=function(e,t,n,o){var r=-1,l=null==e?0:e.length;for(o&&l&&(n=e[++r]);++r<l;)n=t(n,e[r],r,e);return n}},999:(e,t,n)=>{var o=n(9302),r=n(6800);e.exports=function(e){return o(function(t,n){var o=-1,l=n.length,a=l>1?n[l-1]:void 0,i=l>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(l--,a):void 0,i&&r(n[0],n[1],i)&&(a=l<3?void 0:a,l=1),t=Object(t);++o<l;){var s=n[o];s&&e(t,s,o,a)}return t})}},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},1074:e=>{e.exports=function(e){return e.split("")}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1175:(e,t,n)=>{var o=n(6025);e.exports=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},1331:(e,t,n)=>{var o=n(2552),r=n(8879),l=n(346),a=Function.prototype,i=Object.prototype,s=a.toString,u=i.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!l(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},1438:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!0;var a,i,s={};for(a=0,i=o.length;a<i;a++)s[o[a]]=!0;for(a=0,i=r.length;a<i;a++){var u=r[a],c=e[u],p=t[u];if(c!==p){if(!s[u]||null===c||null===p||"object"!==n(c)||"object"!==n(p))return!0;var m=Object.keys(c),d=Object.keys(p);if(m.length!==d.length)return!0;for(var b=0,f=m.length;b<f;b++){var g=m[b];if(c[g]!==p[g])return!0}}}return!1}},1572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=o?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(6540)),r=a(n(5556)),l=a(n(1438));function a(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function p(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return function(){var t,n=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var o=f(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return b(e)}(this,t)}}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,n,r,a=d(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return h(b(e=a.call.apply(a,[this].concat(n))),"storeItemReference",function(t){null!==t&&(e.item=t)}),h(b(e),"onMouseEnter",function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:o,itemIndex:r})}),h(b(e),"onMouseLeave",function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:o,itemIndex:r})}),h(b(e),"onMouseDown",function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:o,itemIndex:r})}),h(b(e),"onClick",function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onClick(t,{sectionIndex:o,itemIndex:r})}),e}return t=i,n=[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,l=e.renderItemData,a=p(e,["isHighlighted","item","renderItem","renderItemData"]);return delete a.sectionIndex,delete a.itemIndex,"function"==typeof a.onMouseEnter&&(a.onMouseEnter=this.onMouseEnter),"function"==typeof a.onMouseLeave&&(a.onMouseLeave=this.onMouseLeave),"function"==typeof a.onMouseDown&&(a.onMouseDown=this.onMouseDown),"function"==typeof a.onClick&&(a.onClick=this.onClick),o.default.createElement("li",u({role:"option"},a,{ref:this.storeItemReference}),r(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({isHighlighted:t},l)))}}],n&&m(t.prototype,n),r&&m(t,r),i}(o.Component);t.default=y,h(y,"propTypes",{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})},1578:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,l=void 0;try{for(var a,i=e[Symbol.iterator]();!(o=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(r)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function r(e){var r=t(e,2),l=r[0],a=r[1];return o?null===a||a===n[l]-1?null===(l=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(l))?[null,null]:[l,0]:[l,a+1]:0===n||a===n-1?[null,null]:null===a?[null,0]:[null,a+1]}return{next:r,prev:function(e){var r=t(e,2),l=r[0],a=r[1];return o?null===a||0===a?null===(l=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(l))?[null,null]:[l,n[l]-1]:[l,a-1]:0===n||0===a?[null,null]:null===a?[null,n-1]:[null,a-1]},isLast:function(e){return null===r(e)[1]}}}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1791:(e,t,n)=>{var o=n(6547),r=n(3360);e.exports=function(e,t,n,l){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=l?l(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?r(n,u,c):o(n,u,c)}return n}},1882:(e,t,n)=>{var o=n(2552),r=n(3805);e.exports=function(e){if(!r(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1961:(e,t,n)=>{var o=n(9653);e.exports=function(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1986:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",l="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+o+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",c=u+s+("(?:\\u200d(?:"+[l,a,i].join("|")+")"+u+s+")*"),p="(?:"+[l+o+"?",o,a,i,n].join("|")+")",m=RegExp(r+"(?="+r+")|"+p+c,"g");e.exports=function(e){return e.match(m)||[]}},2225:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+l+"]",i="\\d+",s="["+n+"]",u="["+o+"]",c="[^"+t+l+i+n+o+r+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+r+"]",b="(?:"+u+"|"+c+")",f="(?:"+d+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",h="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",k=v+y+("(?:\\u200d(?:"+["[^"+t+"]",p,m].join("|")+")"+v+y+")*"),_="(?:"+[s,p,m].join("|")+")"+k,w=RegExp([d+"?"+u+"+"+g+"(?="+[a,d,"$"].join("|")+")",f+"+"+h+"(?="+[a,d+b,"$"].join("|")+")",d+"?"+b+"+"+g,d+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,_].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},2243:(e,t,n)=>{"use strict";e.exports=n(7424).default},2404:(e,t,n)=>{var o=n(270);e.exports=function(e,t){return o(e,t)}},2428:e=>{e.exports=function(){return!1}},2444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=o?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(6540)),r=a(n(5556)),l=a(n(1438));function a(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e){return function(){var t,n=p(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var o=p(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}var d,b,f,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(i,e);var t,n,r,a=c(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,l=e.sectionKeyPrefix,a=n(t);return a?o.default.createElement("div",r("".concat(l,"title"),"sectionTitle"),a):null}}])&&u(t.prototype,n),r&&u(t,r),i}(o.Component);t.default=g,d=g,b="propTypes",f={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},b in d?Object.defineProperty(d,b,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[b]=f},2507:(e,t,n)=>{var o=n(8754),r=n(9698),l=n(3912),a=n(3222);e.exports=function(e){return function(t){t=a(t);var n=r(t)?l(t):void 0,i=n?n[0]:t.charAt(0),s=n?o(n,1).join(""):t.slice(1);return i[e]()+s}}},2552:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,a){if(a!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},2824:(e,t,n)=>{var o=n(7805),r=n(3290),l=n(1961),a=n(3007),i=n(5529),s=n(2428),u=n(6449),c=n(3693),p=n(3656),m=n(1882),d=n(3805),b=n(1331),f=n(7167),g=n(4974),h=n(9884);e.exports=function(e,t,n,y,v,k,_){var w=g(e,n),S=g(t,n),A=_.get(S);if(A)o(e,n,A);else{var I=k?k(w,S,n+"",e,t,_):void 0,x=void 0===I;if(x){var C=u(S),q=!C&&p(S),E=!C&&!q&&f(S);I=S,C||q||E?u(w)?I=w:c(w)?I=a(w):q?(x=!1,I=r(S,!0)):E?(x=!1,I=l(S,!0)):I=[]:b(S)||s(S)?(I=w,s(w)?I=h(w):d(w)&&!m(w)||(I=i(S))):x=!1}x&&(_.set(S,I),v(I,S,y,k,_),_.delete(S)),o(e,n,I)}}},2865:e=>{e.exports=function(e){return e}},3007:e=>{e.exports=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},3221:e=>{e.exports=function(e){return function(t,n,o){for(var r=-1,l=Object(t),a=o(t),i=a.length;i--;){var s=a[e?i:++r];if(!1===n(l[s],s,l))break}return t}}},3222:e=>{e.exports=function(e){return e}},3243:(e,t,n)=>{var o=n(6110),r=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},3290:(e,t,n)=>{e=n.nmd(e);var o=n(9325),r=t&&!t.nodeType&&t,l=r&&e&&!e.nodeType&&e,a=l&&l.exports===r?o.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,o=i?i(n):new e.constructor(n);return e.copy(o),o}},3360:(e,t,n)=>{var o=n(3243);e.exports=function(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=o?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(6540)),r=u(n(5556)),l=u(n(1578)),a=u(n(4525)),i=u(n(2444)),s=u(n(7932));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,l=void 0;try{for(var a,i=e[Symbol.iterator]();!(o=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,l=e}finally{try{o||null==i.return||i.return()}finally{if(r)throw l}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e){return function(){var t,n=v(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var o=v(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return y(e)}(this,t)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={},S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(c,e);var t,n,r,u=h(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),_(y(t=u.call(this,e)),"storeInputReference",function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"==typeof n?n(e):"object"===f(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))}),_(y(t),"storeItemsContainerReference",function(e){null!==e&&(t.itemsContainer=e)}),_(y(t),"onHighlightedItemChange",function(e){t.highlightedItem=e}),_(y(t),"getItemId",function(e,n){if(null===n)return null;var o=t.props.id,r=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(o,"-").concat(r,"-item-").concat(n)}),_(y(t),"onFocus",function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)}),_(y(t),"onBlur",function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)}),_(y(t),"onKeyDown",function(e){var n=t.props,o=n.inputProps,r=n.highlightedSectionIndex,l=n.highlightedItemIndex,a=e.keyCode;switch(a){case 40:case 38:var i=40===a?"next":"prev",s=d(t.sectionIterator[i]([r,l]),2),u=s[0],c=s[1];o.onKeyDown(e,{newHighlightedSectionIndex:u,newHighlightedItemIndex:c});break;default:o.onKeyDown(e,{highlightedSectionIndex:r,highlightedItemIndex:l})}}),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return t=c,(n=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return 0===e}))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,l.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,a.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,l=n.items,a=n.renderItem,u=n.renderItemData,c=n.renderSectionTitle,p=n.highlightedSectionIndex,m=n.highlightedItemIndex,d=n.itemProps;return l.map(function(n,l){var b="react-autowhatever-".concat(r,"-"),f="".concat(b,"section-").concat(l,"-"),g=0===l;return o.default.createElement("div",t("".concat(f,"container"),"sectionContainer",g&&"sectionContainerFirst"),o.default.createElement(i.default,{section:n,renderSectionTitle:c,theme:t,sectionKeyPrefix:f}),o.default.createElement(s.default,{items:e.sectionsItems[l],itemProps:d,renderItem:a,renderItemData:u,sectionIndex:l,highlightedItemIndex:p===l?m:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:b,ref:e.storeItemsListReference}))})}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,l=n.renderItem,a=n.renderItemData,i=n.highlightedSectionIndex,u=n.highlightedItemIndex,c=n.itemProps;return o.default.createElement(s.default,{items:e,itemProps:c,renderItem:l,renderItemData:a,highlightedItemIndex:null===i?u:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(r,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,l=t.renderInputComponent,a=t.renderItemsContainer,i=t.highlightedSectionIndex,s=t.highlightedItemIndex,u=this.state.isInputFocused,c=r?this.renderSections():this.renderItems(),p=null!==c,d=this.getItemId(i,s),b="react-autowhatever-".concat(n),f=m({role:"combobox","aria-haspopup":"listbox","aria-owns":b,"aria-expanded":p},e("react-autowhatever-".concat(n,"-container"),"container",p&&"containerOpen"),{},this.props.containerProps),g=l(m({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":b,"aria-activedescendant":d},e("react-autowhatever-".concat(n,"-input"),"input",p&&"inputOpen",u&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),h=a({containerProps:m({id:b,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:c});return o.default.createElement("div",f,g,h)}}])&&g(t.prototype,n),r&&g(t,r),c}(o.Component);t.default=S,_(S,"propTypes",{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),_(S,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return o.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:w,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:w,inputProps:w,itemProps:w,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},3488:e=>{e.exports=function(e){return e}},3656:e=>{e.exports=function(){return!1}},3675:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter(function(n){return t.call(e,n)})}e.exports=Object.assign||function(e,t){for(var o,r,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){o=arguments[a],r=n(Object(o));for(var i=0;i<r.length;i++)l[r[i]]=o[r[i]]}return l}},3693:(e,t,n)=>{var o=n(4894),r=n(346);e.exports=function(e){return r(e)&&o(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3912:(e,t,n)=>{var o=n(1074),r=n(9698),l=n(2054);e.exports=function(e){return r(e)?l(e):o(e)}},4058:(e,t,n)=>{var o=n(4792),r=n(5539)(function(e,t,n){return t=t.toLowerCase(),e+(n?o(t):t)});e.exports=r},4248:e=>{e.exports=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,l=void 0;try{for(var a,i=e[Symbol.iterator]();!(o=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(r)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l,a=n(3675),i=(l=a)&&l.__esModule?l:{default:l},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=o(t,2),l=n[0],a=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var u=n.map(function(e){return l[e]}).filter(s);return"string"==typeof u[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,r(u)):u.join(" ")}:{key:e,style:i.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},4739:(e,t,n)=>{var o=n(6025);e.exports=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}},4792:(e,t,n)=>{var o=n(3222),r=n(5808);e.exports=function(e){return r(o(e).toLowerCase())}},4840:(e,t,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},4894:(e,t,n)=>{var o=n(1882),r=n(294);e.exports=function(e){return null!=e&&r(e.length)&&!o(e)}},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var l={},a=[],i=0;i<e.length;i++){var s=e[i],u=o.base?s[0]+o.base:s[0],c=l[u]||0,p="".concat(u," ").concat(c);l[u]=c+1;var m=n(p),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==m)t[m].references++,t[m].updater(d);else{var b=r(d,o);o.byIndex=i,t.splice(i,0,{identifier:p,updater:b,references:1})}a.push(p)}return a}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var l=o(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<l.length;a++){var i=n(l[a]);t[i].references--}for(var s=o(e,r),u=0;u<l.length;u++){var c=n(l[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}l=s}}},5160:e=>{e.exports=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(r);++o<r;)l[o]=e[o+t];return l}},5250:(e,t,n)=>{var o=n(7217),r=n(7805),l=n(6649),a=n(2824),i=n(3805),s=n(7241),u=n(4974);e.exports=function e(t,n,c,p,m){t!==n&&l(n,function(l,s){if(m||(m=new o),i(l))a(t,n,s,c,e,p,m);else{var d=p?p(u(t,s),l,s+"",t,n,m):void 0;void 0===d&&(d=l),r(t,s,d)}},s)}},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.iterator;var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function h(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||b}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||b}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=h.prototype;var k=v.prototype=new y;k.constructor=v,f(k,h.prototype),k.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,o){var r,l={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!A.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(1===s)l.children=o;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===l[r]&&(l[r]=s[r]);return{$$typeof:n,type:e,key:a,ref:i,props:l,_owner:S.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function q(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function E(e,t,r,l,a){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case o:s=!0}}if(s)return a=a(s=e),e=""===l?"."+q(s,0):l,_(a)?(r="",null!=e&&(r=e.replace(C,"$&/")+"/"),E(a,t,r,"",function(e){return e})):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(s=0,l=""===l?".":l+":",_(e))for(var u=0;u<e.length;u++){var c=l+q(i=e[u],u);s+=E(i,t,r,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(i=e.next()).done;)s+=E(i=i.value,t,r,c=l+q(i,u++),a);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,n){if(null==e)return e;var o=[],r=0;return E(e,o,"","",function(e){return t.call(n,e,r++)}),o}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},N={transition:null},D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=h,t.Fragment=r,t.Profiler=a,t.PureComponent=v,t.StrictMode=l,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=R,t.cloneElement=function(e,t,o){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=f({},e.props),l=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=S.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)w.call(t,u)&&!A.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=o;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:n,type:e.type,key:l,ref:a,props:r,_owner:i}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5364:(e,t,n)=>{var o=n(5250),r=n(999)(function(e,t,n){o(e,t,n)});e.exports=r},5434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},5527:e=>{e.exports=function(){return!1}},5529:(e,t,n)=>{var o=n(9344),r=n(8879),l=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||l(e)?{}:o(r(e))}},5539:(e,t,n)=>{var o=n(882),r=n(828),l=n(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return o(l(r(t).replace(a,"")),e,"")}}},5556:(e,t,n)=>{e.exports=n(2694)()},5808:(e,t,n)=>{var o=n(2507)("toUpperCase");e.exports=o},5861:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5911:(e,t,n)=>{var o=n(8859),r=n(4248),l=n(9219);e.exports=function(e,t,n,a,i,s){var u=1&n,c=e.length,p=t.length;if(c!=p&&!(u&&p>c))return!1;var m=s.get(e),d=s.get(t);if(m&&d)return m==t&&d==e;var b=-1,f=!0,g=2&n?new o:void 0;for(s.set(e,t),s.set(t,e);++b<c;){var h=e[b],y=t[b];if(a)var v=u?a(y,h,b,t,e,s):a(h,y,b,e,t,s);if(void 0!==v){if(v)continue;f=!1;break}if(g){if(!r(t,function(e,t){if(!l(g,t)&&(h===e||i(h,e,n,a,s)))return g.push(t)})){f=!1;break}}else if(h!==y&&!i(h,y,n,a,s)){f=!1;break}}return s.delete(e),s.delete(t),f}},6025:(e,t,n)=>{var o=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}},6110:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6131:e=>{e.exports=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1}},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,o,r,l){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(a[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&a[c[0]]||(void 0!==l&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=l),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},6449:e=>{var t=Array.isArray;e.exports=t},6462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6547:(e,t,n)=>{var o=n(3360),r=n(5288),l=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];l.call(e,t)&&r(a,n)&&(void 0!==n||t in e)||o(e,t,n)}},6645:(e,t,n)=>{var o=n(1733),r=n(5434),l=n(3222),a=n(2225);e.exports=function(e,t,n){return e=l(e),void 0===(t=n?void 0:t)?r(e)?a(e):o(e):e.match(t)||[]}},6649:(e,t,n)=>{var o=n(3221)();e.exports=o},6757:(e,t,n)=>{var o=n(1033),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var l=arguments,a=-1,i=r(l.length-t,0),s=Array(i);++a<i;)s[a]=l[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=l[a];return u[t]=n(s),o(e,this,u)}}},6800:e=>{e.exports=function(){return!1}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,l(n)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},7068:(e,t,n)=>{var o=n(7217),r=n(5911),l=n(1986),a=n(689),i=n(5861),s=n(6449),u=n(3656),c=n(7167),p="[object Arguments]",m="[object Array]",d="[object Object]",b=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,g,h){var y=s(e),v=s(t),k=y?m:i(e),_=v?m:i(t),w=(k=k==p?d:k)==d,S=(_=_==p?d:_)==d,A=k==_;if(A&&u(e)){if(!u(t))return!1;y=!0,w=!1}if(A&&!w)return h||(h=new o),y||c(e)?r(e,t,n,f,g,h):l(e,t,k,n,f,g,h);if(!(1&n)){var I=w&&b.call(e,"__wrapped__"),x=S&&b.call(t,"__wrapped__");if(I||x){var C=I?e.value():e,q=x?t.value():t;return h||(h=new o),g(C,q,n,f,h)}}return!!A&&(h||(h=new o),a(e,t,n,f,g,h))}},7167:e=>{e.exports=function(){return!1}},7217:(e,t,n)=>{var o=n(3702),r=n(80),l=n(4739),a=n(8655),i=n(1175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=r,s.prototype.get=l,s.prototype.has=a,s.prototype.set=i,e.exports=s},7241:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},7424:(e,t,n)=>{"use strict";t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=o?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(6540)),r=s(n(5556)),l=s(n(9321)),a=s(n(3486)),i=n(6462);function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var o=g(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return f(e)}(this,t)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(){return!0},k="suggestions-revealed",_="input-focused",w="input-changed",S="escape-pressed",A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,s=b(u);function u(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),y(f(t=s.call(this)),"onDocumentMouseDown",function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}}),y(f(t),"storeAutowhateverRef",function(e){null!==e&&(t.autowhatever=e)}),y(f(t),"onSuggestionMouseEnter",function(e,n){var o=n.sectionIndex,r=n.itemIndex;t.updateHighlightedSuggestion(o,r),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout(function(){t.justMouseEntered=!1})}),y(f(t),"highlightFirstSuggestion",function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)}),y(f(t),"onDocumentMouseUp",function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null}),y(f(t),"onSuggestionMouseDown",function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)}),y(f(t),"onSuggestionsClearRequested",function(){var e=t.props.onSuggestionsClearRequested;e&&e()}),y(f(t),"onSuggestionSelected",function(e,n){var o=t.props,r=o.alwaysRenderSuggestions,l=o.onSuggestionSelected,a=o.onSuggestionsFetchRequested;l&&l(e,n);var i=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);r||i?a({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()}),y(f(t),"onSuggestionClick",function(e){var n=t.props,o=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,l=t.getSuggestionIndices(t.findSuggestionElement(e.target)),a=l.sectionIndex,i=l.suggestionIndex,s=t.getSuggestion(a,i),u=t.props.getSuggestionValue(s);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:s,suggestionValue:u,suggestionIndex:i,sectionIndex:a,method:"click"});var c=t.props.shouldKeepSuggestionsOnSelect(s);o||c||t.closeSuggestions(),!0===r?t.input.focus():t.onBlur(),setTimeout(function(){t.justSelectedSuggestion=!1})}),y(f(t),"onBlur",function(){var e=t.props,n=e.inputProps,o=e.shouldRenderSuggestions,r=n.value,l=n.onBlur,a=t.getHighlightedSuggestion(),i=o(r,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!i}),l&&l(t.blurEvent,{highlightedSuggestion:a})}),y(f(t),"onSuggestionMouseLeave",function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)}),y(f(t),"onSuggestionTouchStart",function(){t.justSelectedSuggestion=!0}),y(f(t),"onSuggestionTouchMove",function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()}),y(f(t),"itemProps",function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}}),y(f(t),"renderSuggestionsContainer",function(e){var n=e.containerProps,o=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:o,query:t.getQuery()})}),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=u,n=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,l.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,r=n.onSuggestionHighlighted,a=n.highlightFirstSuggestion;if(!(0,l.default)(o,e.suggestions)&&o.length>0&&a)this.highlightFirstSuggestion();else if(r){var i=this.getHighlightedSuggestion();i!=t.highlightedSuggestion&&r({suggestion:i})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState(function(r){var l=r.valueBeforeUpDown;return null===t?l=null:null===l&&void 0!==n&&(l=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:l}})}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState(function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,r=n.multiSection,l=n.getSectionSuggestions;return r?l(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,r=o.value,l=o.onChange;t!==r&&l(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,o=e.inputProps,r=e.shouldRenderSuggestions,l=o.value;return n.length>0&&r(l,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,l=t.onSuggestionsFetchRequested,s=t.renderSuggestion,u=t.inputProps,c=t.multiSection,p=t.renderSectionTitle,d=t.id,b=t.getSectionSuggestions,f=t.theme,g=t.getSuggestionValue,h=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,A=t.containerProps,I=this.state,x=I.isFocused,C=I.isCollapsed,q=I.highlightedSectionIndex,E=I.highlightedSuggestionIndex,T=I.valueBeforeUpDown,O=h?v:this.props.shouldRenderSuggestions,P=u.value,N=u.onFocus,D=u.onKeyDown,R=this.willRenderSuggestions(this.props,"render"),B=h||x&&!C&&R,M=B?n:[],j=m({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=O(P,_);e.setState({isFocused:!0,isCollapsed:!n}),N&&N(t),n&&l({value:P,reason:_})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,o=O(n,w);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(m({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?l({value:n,reason:w}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var r=t.keyCode;switch(r){case 40:case 38:if(C)O(P,k)&&(l({value:P,reason:k}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var a,i=o.newHighlightedSectionIndex,s=o.newHighlightedItemIndex;a=null===s?null===T?P:T:e.getSuggestionValueByIndex(i,s),e.updateHighlightedSuggestion(i,s,P),e.maybeCallOnChange(t,a,40===r?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(B&&!h&&e.closeSuggestions(),null!=u){t.preventDefault();var c=g(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:E,sectionIndex:q,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case 27:B&&t.preventDefault();var p=B&&!h;null===T?p||(e.maybeCallOnChange(t,"","escape"),O("",S)?l({value:"",reason:S}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,T,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}D&&D(t)}}),V={query:this.getQuery()};return o.default.createElement(a.default,{multiSection:c,items:M,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:V,renderSectionTitle:p,getSectionItems:b,highlightedSectionIndex:q,highlightedItemIndex:E,containerProps:A,inputProps:j,itemProps:this.itemProps,theme:(0,i.mapToAutowhateverTheme)(f),id:d,ref:this.storeAutowhateverRef})}}],n&&d(t.prototype,n),r&&d(t,r),u}(o.Component);t.default=A,y(A,"propTypes",{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),y(A,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:i.defaultTheme,id:"1",containerProps:{}})},7556:e=>{e.exports=function(e){return e}},7560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(1601),r=n.n(o),l=n(6314),a=n.n(l)()(r());a.push([e.id,".qi-preview-screen-tablet .qi-block-image-gallery.qodef-image--hover-follow-info .qodef-e-content,.qi-preview-screen-mobile .qi-block-image-gallery.qodef-image--hover-follow-info .qodef-e-content{display:none}",""]);const i=a},7659:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},7805:(e,t,n)=>{var o=n(3360),r=n(5288);e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&o(e,t,n)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var l=n.sourceMap;l&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(l))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7828:(e,t,n)=>{var o=n(9325).Uint8Array;e.exports=o},7932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=o?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(6540)),r=i(n(5556)),l=i(n(1572)),a=i(n(1438));function i(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return function(){var t,n=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var o=f(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return b(e)}(this,t)}}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,r,i=d(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return h(b(e=i.call.apply(i,[this].concat(n))),"storeHighlightedItemReference",function(t){e.props.onHighlightedItemChange(null===t?null:t.item)}),e}return t=s,n=[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,a=t.renderItem,i=t.renderItemData,s=t.sectionIndex,u=t.highlightedItemIndex,m=t.getItemId,d=t.theme,b=t.keyPrefix,f=null===s?b:"".concat(b,"section-").concat(s,"-"),g="function"==typeof r;return o.default.createElement("ul",c({role:"listbox"},d("".concat(f,"items-list"),"itemsList")),n.map(function(t,n){var b=0===n,y=n===u,v="".concat(f,"item-").concat(n),k=g?r({sectionIndex:s,itemIndex:n}):r,_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({id:m(s,n),"aria-selected":y},d(v,"item",b&&"itemFirst",y&&"itemHighlighted"),{},k);return y&&(_.ref=e.storeHighlightedItemReference),o.default.createElement(l.default,c({},_,{sectionIndex:s,isHighlighted:y,itemIndex:n,item:t,renderItem:a,renderItemData:i}))}))}}],n&&m(t.prototype,n),r&&m(t,r),s}(o.Component);t.default=y,h(y,"propTypes",{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),h(y,"defaultProps",{sectionIndex:null})},8655:(e,t,n)=>{var o=n(6025);e.exports=function(e){return o(this.__data__,e)>-1}},8754:(e,t,n)=>{var o=n(5160);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:o(e,t,n)}},8859:(e,t,n)=>{var o=n(6449);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return o(e)?e:[e]}},8879:(e,t,n)=>{var o=n(4335)(Object.getPrototypeOf,Object);e.exports=o},9219:(e,t,n)=>{var o=n(6131);e.exports=function(e,t){return!!(null==e?0:e.length)&&o(e,t,0)>-1}},9302:(e,t,n)=>{var o=n(3488),r=n(6757),l=n(2865);e.exports=function(e,t){return l(r(e,t,o),e+"")}},9321:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},9325:(e,t,n)=>{var o=n(4840),r="object"==typeof self&&self&&self.Object===Object&&self,l=o||r||Function("return this")();e.exports=l},9344:(e,t,n)=>{var o=n(3805),r=Object.create,l=function(){function e(){}return function(t){if(!o(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=l},9653:(e,t,n)=>{var o=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},9698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9884:(e,t,n)=>{var o=n(1791),r=n(7241);e.exports=function(e){return o(e,r(e))}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={id:o,loaded:!1,exports:{}};return e[o](l,l.exports,n),l.loaded=!0,l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";const e=wp.i18n,t=wp.blocks;var o=n(4058),r=n.n(o);const l=wp.hooks,a=wp.data;var i,s=n(6540);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(null,arguments)}const c=e=>s.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),i||(i=s.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7zM4 6v8h16V6z"})));var p;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m.apply(null,arguments)}const d=e=>s.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),p||(p=s.createElement("path",{d:"M6 4v15h12V4zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2"})));var b;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},f.apply(null,arguments)}const g=e=>s.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),b||(b=s.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m0 2v15h8V4z"}))),h="desktop",y={desktop:{label:(0,e.__)("Desktop","qi-blocks"),icon:wp.element.createElement(c,null)},tablet:{label:(0,e.__)("Tablet","qi-blocks"),icon:wp.element.createElement(d,null)},mobile:{label:(0,e.__)("Mobile","qi-blocks"),icon:wp.element.createElement(g,null)}};let v=h;const k=()=>v,_=wp.components,w=e=>{const t={...e},{blockAttributeKey:n,blockAttributes:o,setAttributes:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s,repeaterGetAttributes:u}=t;return t.getAttributeValue=()=>{let e=o[n];return l&&(e=u(i,a)),e||!1},t.setAttributeValue=e=>{l?s(i,e,a):r({[n]:e})},wp.element.createElement("div",{className:"qodef-on-off-option"},wp.element.createElement(_.ToggleControl,{label:t.label,help:t.help,checked:t.getAttributeValue(),onChange:()=>t.setAttributeValue(!t.getAttributeValue())}))};w.defaultProps={label:(0,e.__)("Show","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const S=w,A=[{classSuffix:"desktop",label:(0,e.__)("Hide On Desktop","qi-blocks"),blockAttributeKey:"hideOnDesktop"},{classSuffix:"tablet",label:(0,e.__)("Hide On Tablet","qi-blocks"),blockAttributeKey:"hideOnTablet"},{classSuffix:"mobile",label:(0,e.__)("Hide On Mobile","qi-blocks"),blockAttributeKey:"hideOnMobile"}],I=e=>{const t={...e},{label:n,description:o,blockAttributeKeys:r,blockAttributes:l,setAttributes:a}=t;return wp.element.createElement("div",{className:"qodef-visibility-group-option"},n&&wp.element.createElement("label",{className:"qodef-option-label"},n),o&&wp.element.createElement("p",{className:"qodef-option-description"},o),r.map(e=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(S,{label:e.label,blockAttributeKey:e.blockAttributeKey,blockAttributes:l,setAttributes:a}))))};I.defaultProps={label:(0,e.__)("Visibility","qi-blocks"),description:(0,e.__)("Responsive visibility will take effect only on preview or live page, and not while editing in Gutenberg.","qi-blocks"),blockAttributeKeys:A,blockAttributes:{},setAttributes:()=>{}};const x=(e,t="")=>{const n=e=>P(t,e),o=[];return e[n("cssClasses")]&&o.push(e[n("cssClasses")]),void 0!==e[n("EntranceAnimation")]&&""!==e[n("EntranceAnimation")]&&(o.push("qodef-entrance-animation--on"),e[n("EntranceAnimationDuration")]&&o.push("qodef-animation-speed--"+e[n("EntranceAnimationDuration")])),e[n("BlockWidth")]&&o.push("qodef-width--"+e[n("BlockWidth")]),e[n("BlockWidthTablet")]&&o.push("qodef-width--tablet--"+e[n("BlockWidthTablet")]),e[n("BlockWidthMobile")]&&o.push("qodef-width--mobile--"+e[n("BlockWidthMobile")]),o.push((e=>{const t=[];return A.map(n=>{const o="qodef-hide-on--"+n.classSuffix,r=e[n.blockAttributeKey];t.includes(o)&&!r?t.filter(function(e){return e!==o}):!t.includes(o)&&r&&t.push(o)}),t.join(" ")})(e)),o.join(" ")},C=(e,t="")=>{let n=["qodef-block-container"];return L(e.uniqueClass,"all")&&n.push(e.uniqueClass),n.push(x(e,t)),n.join(" ")},q=(e,t="")=>{let n={};const o=((e,t="")=>{const n=(e,n="")=>P(t,e,n),o={};return void 0!==e[n("EntranceAnimation")]&&""!==e[n("EntranceAnimation")]&&(o["data-animation"]=e[n("EntranceAnimation")]),"custom"!==e[n("BlockWidth")]&&"custom"!==e[n("BlockWidthTablet")]&&"custom"!==e[n("BlockWidthMobile")]||["","Tablet","Mobile"].forEach(t=>{const r=e[n("BlockCustomWidth",t)],l=e[n("BlockCustomWidthDecimal",t)],a=e[n("BlockCustomWidthUnit",t)];M(a)&&r?o["data-width"+(t?"-"+t.toLowerCase():"")]=parseInt(r,10)+a:j(a)&&l&&(o["data-width"+(t?"-"+t.toLowerCase():"")]=parseFloat(l)+a)}),o})(e,t);return o&&(n={...n,...o}),n},E=(e,t="",n=[])=>O(e,t,n),T=(e,t,n=[])=>{if(!e)return"";let o=[`qi-block-${e}`,"qodef-block","qodef-m"];return L(t.attributes.className,"all")&&o.push(t.attributes.className),n&&(o=[...o,...n]),o.join(" ")},O=(e,t="",n=[])=>{const o=e=>P(t,e);if(!e)return"";let r=[];return L(e[o("cssId")],"all")&&r.push(e[o("cssId")]),n&&(r=[...r,...n]),r.join(" ")},P=(t,n,o)=>(t=t||"",n=n||"",o=o||"",r()((0,e.sprintf)("%s%s%s",t,n,o))),N=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",D=e=>e&&h!==e?N(e):"",R=(e,t)=>{let n=e.desktop;return"mobile"===t&&(n={...n,...e.tablet}),{...n,...e[t]}},B=(e,t=!0)=>{let n="";return Object.entries(e).map(([e,o])=>{n+=`${e.replace(/([A-Z])/g,(e,t,n)=>(n>0?"-":"")+e.toLowerCase())}: ${o} ${t?"!important":""};`}),n},M=e=>["px"].includes(e),j=e=>["em","rem","%","vw","vh"].includes(e),V=(e,t="integer")=>{let n="";return 0===e||"0"===e?n=0:e&&(n=parseInt(e,10),"decimal"===t&&(n=parseFloat(e))),n},L=(e,t="")=>{let n=void 0!==e&&""!==e;return"all"===t&&(n=void 0!==e&&e),n},U=e=>{let t="";return 0===e||"0"===e?t=0:e&&(t=e),t},F=(t,n=!0,o=[])=>{let r=[],a=[];if(t){switch(n&&(r=[{value:"",label:(0,e.__)("Default","qi-blocks")}]),t){case"no_yes":a=[{value:"no",label:(0,e.__)("No","qi-blocks")},{value:"yes",label:(0,e.__)("Yes","qi-blocks")}];break;case"yes_no":a=[{value:"yes",label:(0,e.__)("Yes","qi-blocks")},{value:"no",label:(0,e.__)("No","qi-blocks")}];break;case"link_target":a=[{value:"_self",label:(0,e.__)("Same Window","qi-blocks")},{value:"_blank",label:(0,e.__)("New Window","qi-blocks")}];break;case"column_gap":a=[{value:"huge",label:(0,e.__)("Huge (35)","qi-blocks")},{value:"large",label:(0,e.__)("Large (25)","qi-blocks")},{value:"medium",label:(0,e.__)("Medium (20)","qi-blocks")},{value:"normal",label:(0,e.__)("Normal (15)","qi-blocks")},{value:"small",label:(0,e.__)("Small (10)","qi-blocks")},{value:"tiny",label:(0,e.__)("Tiny (5)","qi-blocks")},{value:"no",label:(0,e.__)("No (0)","qi-blocks")}];break;case"columns_responsive":a=[{value:"predefined",label:(0,e.__)("Predefined","qi-blocks")},{value:"custom",label:(0,e.__)("Custom","qi-blocks")}];break;case"masonry_image_sizes":a=[{value:"square",label:(0,e.__)("Square","qi-blocks")},{value:"landscape",label:(0,e.__)("Landscape","qi-blocks")},{value:"portrait",label:(0,e.__)("Portrait","qi-blocks")},{value:"huge-square",label:(0,e.__)("Huge","qi-blocks")}];break;case"image_sizes":a=[{value:"full",label:(0,e.__)("Original","qi-blocks")},{value:"thumbnail",label:(0,e.__)("Thumbnail","qi-blocks")},{value:"medium",label:(0,e.__)("Medium","qi-blocks")},{value:"large",label:(0,e.__)("Large","qi-blocks")}];break;case"title_tag":a=[{value:"h1",label:(0,e.__)("H1","qi-blocks")},{value:"h2",label:(0,e.__)("H2","qi-blocks")},{value:"h3",label:(0,e.__)("H3","qi-blocks")},{value:"h4",label:(0,e.__)("H4","qi-blocks")},{value:"h5",label:(0,e.__)("H5","qi-blocks")},{value:"h6",label:(0,e.__)("H6","qi-blocks")},{value:"p",label:(0,e.__)("Paragraph","qi-blocks")}];break;case"font_weight":a=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"bold",label:(0,e.__)("Bold","qi-blocks")},{value:"100",label:(0,e.__)("Thin (100)","qi-blocks")},{value:"200",label:(0,e.__)("Extra Light (200)","qi-blocks")},{value:"300",label:(0,e.__)("Light (300)","qi-blocks")},{value:"400",label:(0,e.__)("Normal (400)","qi-blocks")},{value:"500",label:(0,e.__)("Medium (500)","qi-blocks")},{value:"600",label:(0,e.__)("Semi Bold (600)","qi-blocks")},{value:"700",label:(0,e.__)("Bold (700)","qi-blocks")},{value:"800",label:(0,e.__)("Extra Bold (800)","qi-blocks")},{value:"900",label:(0,e.__)("Black (900)","qi-blocks")}];break;case"text_transform":a=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"uppercase",label:(0,e.__)("Uppercase","qi-blocks")},{value:"lowercase",label:(0,e.__)("Lowercase","qi-blocks")},{value:"capitalize",label:(0,e.__)("Capitalize","qi-blocks")},{value:"normal",label:(0,e.__)("Normal","qi-blocks")}];break;case"font_style":a=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"italic",label:(0,e.__)("Italic","qi-blocks")},{value:"oblique",label:(0,e.__)("Oblique","qi-blocks")}];break;case"text_decoration":a=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"underline",label:(0,e.__)("Underline","qi-blocks")},{value:"overline",label:(0,e.__)("Overline","qi-blocks")},{value:"line-through",label:(0,e.__)("Line-Through","qi-blocks")}];break;case"background_position":a=[{value:"center center",label:(0,e.__)("Center Center","qi-blocks")},{value:"center left",label:(0,e.__)("Center Left","qi-blocks")},{value:"center right",label:(0,e.__)("Center Right","qi-blocks")},{value:"top center",label:(0,e.__)("Top Center","qi-blocks")},{value:"top left",label:(0,e.__)("Top Left","qi-blocks")},{value:"top right",label:(0,e.__)("Top Right","qi-blocks")},{value:"bottom center",label:(0,e.__)("Bottom Center","qi-blocks")},{value:"bottom left",label:(0,e.__)("Bottom Left","qi-blocks")},{value:"bottom right",label:(0,e.__)("Bottom Right","qi-blocks")}];break;case"background_attachment":a=[{value:"scroll",label:(0,e.__)("Scroll","qi-blocks")},{value:"fixed",label:(0,e.__)("Fixed","qi-blocks")}];break;case"background_repeat":a=[{value:"no-repeat",label:(0,e.__)("No-repeat","qi-blocks")},{value:"repeat",label:(0,e.__)("Repeat","qi-blocks")},{value:"repeat-x",label:(0,e.__)("Repeat-x","qi-blocks")},{value:"repeat-y",label:(0,e.__)("Repeat-y","qi-blocks")}];break;case"background_size":a=[{value:"auto",label:(0,e.__)("Auto","qi-blocks")},{value:"cover",label:(0,e.__)("Cover","qi-blocks")},{value:"contain",label:(0,e.__)("Contain","qi-blocks")}];break;case"horizontal_alignment":a=[{value:"left",label:(0,e.__)("Left","qi-blocks")},{value:"right",label:(0,e.__)("Right","qi-blocks")},{value:"center",label:(0,e.__)("Center","qi-blocks")}];break;case"vertical_alignment":a=[{value:"top",label:(0,e.__)("Top","qi-blocks")},{value:"middle",label:(0,e.__)("Middle","qi-blocks")},{value:"bottom",label:(0,e.__)("Bottom","qi-blocks")}];break;case"html_tag":a=[{value:"section",label:(0,e.__)("Section","qi-blocks")},{value:"div",label:(0,e.__)("Div","qi-blocks")},{value:"main",label:(0,e.__)("Main","qi-blocks")},{value:"article",label:(0,e.__)("Article","qi-blocks")},{value:"nav",label:(0,e.__)("Nav","qi-blocks")},{value:"footer",label:(0,e.__)("Footer","qi-blocks")},{value:"header",label:(0,e.__)("Header","qi-blocks")},{value:"aside",label:(0,e.__)("Aside","qi-blocks")}];break;case"appear_animation":a=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"from-bottom",label:(0,e.__)("From Bottom","qi-blocks")},{value:"from-top",label:(0,e.__)("From Top","qi-blocks")},{value:"from-left",label:(0,e.__)("From Left","qi-blocks")},{value:"from-right",label:(0,e.__)("From Right","qi-blocks")},{value:"fade",label:(0,e.__)("Fade in","qi-blocks")}];break;case"appear_delay":a=[{value:"random",label:(0,e.__)("Random","qi-blocks")},{value:"ms",label:(0,e.__)("Set ms","qi-blocks")}];break;case"responsive_screens":a=[{value:"1024",label:(0,e.__)("Below 1024px","qi-blocks")},{value:"768",label:(0,e.__)("Below 768px","qi-blocks")},{value:"680",label:(0,e.__)("Below 680px","qi-blocks")},{value:"480",label:(0,e.__)("Below 480px","qi-blocks")}];break;case"order_by":a=[{value:"date",label:(0,e.__)("Date","qi-blocks")},{value:"id",label:(0,e.__)("ID","qi-blocks")},{value:"title",label:(0,e.__)("Title","qi-blocks")}];break;case"order":a=[{value:"desc",label:(0,e.__)("Descending","qi-blocks")},{value:"asc",label:(0,e.__)("Ascending","qi-blocks")}];break;case"border_style":a=[{value:"solid",label:(0,e.__)("Solid","qi-blocks")},{value:"dashed",label:(0,e.__)("Dashed","qi-blocks")},{value:"dotted",label:(0,e.__)("Dotted","qi-blocks")}]}r=[...r,...a],o&&(r=[...r,...o])}return(0,l.applyFilters)("qi-blocks-filter-options-pool",r)},z=(e,t="",n={cssProp:"",value:""})=>{const{attributes:o,blockAttrName:r,cssProp:l}=e,a=L(e,"all")&&void 0!==e.direction&&e.direction?N(e.direction):"",i=!!L(e,"all")&&(e.customUnitValue??!1);let s={},u={},c={};return Object.entries(y).map(([e])=>{let p=D(e),m="",d=r+a+p,b=r+a+"Decimal"+p,f=o[r+"Unit"+p];(L(o[d])||L(o[b]))&&(M(f)&&L(o[d])&&!i?m=V(o[d])+f:j(f)&&L(o[b])&&!i?m=V(o[b],"decimal")+f:""!==o[d]&&(m=o[d]));const g=e=>{let n=e;if(t.includes("%s")){const o=t.split("%s");n="",o.forEach((t,r)=>{n+=t,r!==o.length-1&&(n+=e)})}return n};if(m)switch(e){case"desktop":s[l]=t?g(m):m,n.cssProp&&n.value&&(s[n.cssProp]=n.value);break;case"tablet":u[l]=t?g(m):m,n.cssProp&&n.value&&(u[n.cssProp]=n.value);break;case"mobile":c[l]=t?g(m):m,n.cssProp&&n.value&&(c[n.cssProp]=n.value)}}),{desktop:s,tablet:u,mobile:c}},H=(e,n,o,r=!1)=>{const l=r?(e=>{let t=ie();return e&&Object.keys(e).forEach(n=>{n in t&&(t[n]=e[n])}),t})(n):{};return(0,t.createBlock)(e,{...o,...l})},G=()=>({hideOnDesktop:{type:"boolean",default:!1},hideOnTablet:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1}}),K=e=>{const{attrNameTemplate:t,attrName:n}=e,o=e=>P(t,n,e),r=!L(e,"all")||(e.allowUnitControl??!0),l=L(e,"all")&&e.disableDirections||[];let a={};return["Top","Right","Bottom","Left"].map(e=>{l.includes(e)||(a[o(e)]={type:"number",default:""},a[o(e+"Tablet")]={type:"number",default:""},a[o(e+"Mobile")]={type:"number",default:""},r&&(a[o(`${e}Decimal`)]={type:"number",default:""},a[o(`${e}DecimalTablet`)]={type:"number",default:""},a[o(`${e}DecimalMobile`)]={type:"number",default:""}))}),a[o("Unit")]={type:"string",default:"px"},a[o("UnitTablet")]={type:"string",default:"px"},a[o("UnitMobile")]={type:"string",default:"px"},a};K.defaultProps={attrNameTemplate:"",attrName:"",allowUnitControl:!0};const $=K,W=e=>{const{blockAttributeKey:t}=e,n=!!L(e,"all")&&(e.allowScreens??!1),o=!L(e,"all")||(e.allowUnits??!0),r=L(e,"all")&&e.optionType||"integer",l=L(e,"all")&&e.defaultValue||"",a="decimal"===r?l:"";let i={};return"integer"===r&&(i[t]={type:"number",default:l}),i[P(t,"Unit")]={type:"string",default:"px"},(o||"decimal"===r)&&(i[P(t,"Decimal")]={type:"number",default:a}),n&&(i[P(t,"Tablet")]={type:"number",default:""},i[P(t,"Mobile")]={type:"number",default:""},i[P(t,"UnitTablet")]={type:"string",default:"px"},i[P(t,"UnitMobile")]={type:"string",default:"px"},o&&(i[P(t,"DecimalTablet")]={type:"number",default:""},i[P(t,"DecimalMobile")]={type:"number",default:""})),i};W.defaultProps={allowScreens:!1,allowUnits:!0};const Y=W,X=e=>{const t=L(e,"all")&&e.attrNameTemplate||"",n=L(e,"all")&&e.attrName||"Background",o=e=>P(t,n+e),r=Y({blockAttributeKey:o("XPosition"),allowScreens:!0}),l=Y({blockAttributeKey:o("YPosition"),allowScreens:!0}),a=Y({blockAttributeKey:o("SizeWidth"),allowScreens:!0});return{[o("Image")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[o("ImageTablet")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[o("ImageMobile")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[o("Position")]:{type:"string",default:""},[o("PositionTablet")]:{type:"string",default:""},[o("PositionMobile")]:{type:"string",default:""},...r,...l,[o("Attachment")]:{type:"string",default:""},[o("Repeat")]:{type:"string",default:""},[o("RepeatTablet")]:{type:"string",default:""},[o("RepeatMobile")]:{type:"string",default:""},[o("Size")]:{type:"string",default:""},[o("SizeTablet")]:{type:"string",default:""},[o("SizeMobile")]:{type:"string",default:""},...a}};X.defaultProps={attrNameTemplate:"",attrName:"Background"};const Z=X,J=e=>{const t=L(e,"all")&&e.attrNameTemplate||"",n=e=>P(t,e),o=!!L(e,"all")&&(e.includeVideoBG??!1),r=Z({attrNameTemplate:t});let l={[n("BackgroundType")]:{type:"string",default:""},[n("BackgroundColor")]:{type:"string",default:""},...r,[n("BackgroundGradientColor1")]:{type:"string",default:""},[n("BackgroundGradientLocation1")]:{type:"number",default:""},[n("BackgroundGradientColor2")]:{type:"string",default:""},[n("BackgroundGradientLocation2")]:{type:"number",default:""},[n("BackgroundGradientType")]:{type:"string",default:"linear"},[n("BackgroundGradientTypeAngle")]:{type:"number",default:""},[n("BackgroundGradientTypePosition")]:{type:"string",default:"center center"}};if(o){const e={[n("BackgroundVideoLink")]:{type:"object",default:{id:null,url:"",alt:""}},[n("BackgroundVideoStartTime")]:{type:"number",default:""},[n("BackgroundVideoEndTime")]:{type:"number",default:""},[n("BackgroundVideoStartTime")]:{type:"number",default:""},[n("BackgroundVideoPlayOnce")]:{type:"boolean",default:!1},[n("BackgroundVideoPlayOnMobile")]:{type:"boolean",default:!1},[n("BackgroundVideoFallbackImage")]:{type:"object",default:{id:null,url:"",alt:""}}};l={...l,...e}}return l};J.defaultProps={attrNameTemplate:"",includeVideoBG:!1};const Q=J,ee=e=>{const t=L(e,"all")&&e.attrNameTemplate||"",n=L(e,"all")&&e.attrName||"",o=L(e,"all")&&e.defaultValue||"",r=e=>P(t,n+e);return{[r("")]:{type:"string",default:o},[r("Tablet")]:{type:"string",default:""},[r("Mobile")]:{type:"string",default:""}}};ee.defaultProps={attrNameTemplate:"",attrName:"",defaultValue:""};const te=ee,ne=e=>{const t=L(e,"all")&&e.attrNameTemplate||"",n=L(e,"all")&&e.disableWidthDirections||[],o=!L(e,"all")||(e.allowBorderColor??!0),r=!L(e,"all")||(e.allowBorderRadius??!0),l=e=>P(t,e),a=$({attrNameTemplate:t,attrName:"BorderWidth",disableDirections:n,allowUnitControl:!1}),i=o?{[l("BorderColor")]:{type:"string",default:""}}:{},s=r?$({attrNameTemplate:t,attrName:"BorderRadius"}):{};return{[l("BorderStyle")]:{type:"string",default:""},...i,...a,...s}};ne.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0};const oe=ne,re=e=>{const t=L(e,"all")&&e.attrNameTemplate||"",n=e=>P(t,e);return{[n("BoxShadowColor")]:{type:"string",default:""},[n("BoxShadowHorizontal")]:{type:"number",default:""},[n("BoxShadowVertical")]:{type:"number",default:""},[n("BoxShadowBlur")]:{type:"number",default:""},[n("BoxShadowSpread")]:{type:"number",default:""},[n("BoxShadowPosition")]:{type:"string",default:""}}};re.defaultProps={attrNameTemplate:""};const le=re,ae=e=>{const t=L(e,"all")&&e.excludePanels||[],n=L(e,"all")&&e.includePanels||[];let o=n&&n.length?n:["advanced","motion-effects","background","border","positioning","responsive"];const r=e=>P("",e);t&&t.length&&t.forEach(e=>{o.splice(o.indexOf(e),1)});let l={};const a=G();if(o.includes("advanced")){const e=$({attrName:r("Margin")}),t=$({attrName:r("Padding")});l={...l,...e,...t,[r("zIndex")]:{type:"number",default:""},[r("cssId")]:{type:"string",default:""},[r("cssClasses")]:{type:"string",default:""}}}if(o.includes("motion-effects")&&(l={...l,[r("EntranceAnimation")]:{type:"string",default:""},[r("EntranceAnimationDuration")]:{type:"string",default:"normal"},[r("EntranceAnimationDelay")]:{type:"number",default:""}}),o.includes("background")){const e=Q({attrNameTemplate:"Advanced"});l={...l,...e}}if(o.includes("border")){const e=oe({attrNameTemplate:"Advanced"}),t=le({attrNameTemplate:"Advanced"});l={...l,...e,...t}}if(o.includes("positioning")){const e=te({attrName:r("BlockWidth")}),t=Y({blockAttributeKey:r("BlockCustomWidth"),allowScreens:!0}),n=Y({blockAttributeKey:r("PositionHorizontalOffset"),allowScreens:!0}),o=Y({blockAttributeKey:r("PositionVerticalOffset"),allowScreens:!0});l={...l,...e,...t,[r("BlockPosition")]:{type:"string",default:""},[r("PositionHorizontalOrientation")]:{type:"string",default:"left"},...n,[r("PositionVerticalOrientation")]:{type:"string",default:"top"},...o}}return o.includes("responsive")&&(l={...l,...a}),l};ae.defaultProps={excludePanels:[],includePanels:[]};const ie=ae,se=e=>{const t=L(e,"all")&&e.attrNameTemplate||"";let n=[];if(!!L(e,"all")&&(e.allowDefaultGallery??!1))for(let e=0;e<3;e++)n.push({id:null,url:qiBlocksEditor.vars.defaultImage,alt:qiBlocksEditor.vars.defaultImagePlaceholder,caption:"",custom_image_size:""});return{[(e=>P(t,e))("Gallery")]:{type:"array",default:n}}};se.defaultProps={attrNameTemplate:""};const ue=se;var ce=n(5364),pe=n.n(ce);const me=e=>{const t=!L(e,"all")||(e.allowColumnsGap??!0),n=!L(e,"all")||(e.allowColumnsGapSlider??!0),o=!L(e,"all")||(e.allowColumnsResponsive??!0),r=L(e,"all")&&e.attrNameTemplate||"",l=L(e,"all")&&e.defaultColumnNumber||3,a=L(e,"all")&&e.allowColumnsGapSliderValue||"";let i={},s={};return i[P(r,"Columns")]={type:"number",default:l},t&&(i[P(r,"ColumnsGap")]={type:"string",default:"normal"}),n&&(s=Y({blockAttributeKey:P(r,"SpaceBetweenItems"),allowScreens:!0,defaultValue:a})),o&&(i[P(r,"ColumnsResponsive")]={type:"string",default:"predefined"},i[P(r,"Columns1440")]={type:"number",default:""},i[P(r,"Columns1366")]={type:"number",default:""},i[P(r,"Columns1024")]={type:"number",default:""},i[P(r,"Columns768")]={type:"number",default:""},i[P(r,"Columns680")]={type:"number",default:""},i[P(r,"Columns480")]={type:"number",default:""}),pe()(i,s)};me.defaultProps={allowColumnsGap:!0,allowColumnsResponsive:!0,attrNameTemplate:"",defaultColumnNumber:3};const de=me,be=e=>{const t=L(e,"all")&&e.attrNameTemplate||"",n=e=>P(t,e),o=Y({blockAttributeKey:n("FontSize"),allowScreens:!0}),r=Y({blockAttributeKey:n("LineHeight"),allowScreens:!0}),l=Y({blockAttributeKey:n("LetterSpacing"),allowScreens:!0});return{[n("FontFamily")]:{type:"string",default:""},...o,[n("FontWeight")]:{type:"string",default:""},[n("TextTransform")]:{type:"string",default:""},[n("FontStyle")]:{type:"string",default:""},[n("TextDecoration")]:{type:"string",default:""},...r,...l}};be.defaultProps={attrNameTemplate:""};const fe=be,ge=ie(),he={uniqueClass:{type:"string",default:""},...ue(),...de({allowColumnsGap:!1}),enableCustomLinks:{type:"boolean",default:!1},customLinks:{type:"string",default:""},customLinksTarget:{type:"string",default:""},enablePopup:{type:"boolean",default:!0},imageHover:{type:"string",default:""},imageZoomOrigin:{type:"string",default:""},galleryData:{type:"string",default:""},...Y({blockAttributeKey:"imageBorderRadius",allowScreens:!0}),overlayColor:{type:"string",default:""},overlayHoverColor:{type:"string",default:""},captionBoxBackgroundColor:{type:"string",default:""},...$({attrNameTemplate:"CaptionBox",attrName:"Padding"}),captionLabelColor:{type:"string",default:""},captionLabelHoverColor:{type:"string",default:""},...fe({attrNameTemplate:"CaptionLabel"}),...ge};var ye=n(2404),ve=n.n(ye);const ke=wp.blockEditor,_e=wp.compose,we=wp.element;var Se=n(6942),Ae=n.n(Se);const Ie=e=>{const t=t=>P(e.attrNameTemplate,e.attrName,t),n=L(e,"all")&&void 0!==e.disableDirections&&e.disableDirections.length>0?e.disableDirections:[],o=L(e,"all")&&void 0!==e.isImportant&&e.isImportant?" !important":"",{blockAttributes:r}=e,l=["Top","Right","Bottom","Left"];let a={},i={},s={};return Object.entries(y).map(([u])=>{const c=D(u),p=t("Unit"+c),m="p"===r[p]?"%":r[p]||"px";[...l].map((p,d)=>{const b=r[t(p+c)],f=r[t(`${p}Decimal`+c)];if(L(b)||L(f)){let t;const r=e.attrName?e.attrName.toLowerCase():"";if(r.includes("border")){if(r.includes("width"))t=`border${p}Width`;else if(r.includes("radius")){let e,n,o;n=d%2?l[d-1]:p,o=d%2?p:l[l.length-d-1],e=`${n}${o}`,t=`border${e}Radius`}}else t=e.attrName?`${r}${p}`:p.toLowerCase();let c="";if(M(m)&&""!==b?c=n.length>0&&n.includes(p)?"":parseInt(b,10)+m:j(m)&&""!==f&&(c=n.length>0&&n.includes(p)?"":parseFloat(f)+m),c)switch(u){case"desktop":a[t]=c+o;break;case"tablet":i[t]=c+o;break;case"mobile":s[t]=c+o}}})}),{desktop:a,tablet:i,mobile:s}};Ie.defaultProps={attrNameTemplate:"",attrName:"",blockAttributes:{},disableDirections:[],isImportant:!1};const xe=Ie,Ce=e=>{const{blockAttributes:t}=e,n=L(e,"all")&&e.attrNameTemplate||"",o=L(e,"all")&&e.attrName||"Background",r=(e,t)=>P(n,o+e,t);let l={},a={},i={};return t[r("Attachment")]&&(l.backgroundAttachment=t[r("Attachment")]),Object.entries(y).map(([e])=>{let n=D(e),o={};if(t[r("Image",n)]&&t[r("Image",n)].url&&(o.backgroundImage=`url(${t[r("Image",n)].url})`),t[r("Repeat",n)]&&(o.backgroundRepeat=t[r("Repeat",n)]),"custom"===t[r("Position",n)]){let e="",l="";(t[r("XPosition",n)]||t[r("XPositionDecimal",n)])&&(M(t[r("XPositionUnit",n)])&&t[r("XPosition",n)]?e=parseInt(t[r("XPosition",n)],10)+t[r("XPositionUnit",n)]:j(t[r("XPositionUnit",n)])&&t[r("XPositionDecimal",n)]&&(e=parseFloat(t[r("XPositionDecimal",n)])+t[r("XPositionUnit",n)])),(t[r("YPosition",n)]||t[r("YPositionDecimal",n)])&&(M(t[r("YPositionUnit",n)])&&t[r("YPosition",n)]?l=parseInt(t[r("YPosition",n)],10)+t[r("YPositionUnit",n)]:j(t[r("YPositionUnit",n)])&&t[r("YPositionDecimal",n)]&&(l=parseFloat(t[r("YPositionDecimal",n)])+t[r("YPositionUnit",n)])),""===e&&""===l||(o.backgroundPosition=e+" "+l)}else t[r("Position",n)]&&(o.backgroundPosition=t[r("Position",n)]);"custom"===t[r("Size",n)]?(t[r("SizeWidth",n)]||t[r("SizeWidthDecimal",n)])&&(M(t[r("SizeWidthUnit",n)])&&t[r("SizeWidth",n)]?o.backgroundSize=parseInt(t[r("SizeWidth",n)],10)+t[r("SizeWidthUnit",n)]+" auto":j(t[r("SizeWidthUnit",n)])&&t[r("SizeWidthDecimal",n)]&&(o.backgroundSize=parseFloat(t[r("SizeWidthDecimal",n)])+t[r("SizeWidthUnit",n)]+" auto")):t[r("Size",n)]&&(o.backgroundSize=t[r("Size",n)]),Object.keys(o).length>0&&Object.entries(o).map(([t,n])=>{switch(e){case"desktop":l[t]=n;break;case"tablet":a[t]=n;break;case"mobile":i[t]=n}})}),{desktop:l,tablet:a,mobile:i}};Ce.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{}};const qe=Ce,Ee=e=>{const{blockAttributes:t}=e,n=L(e,"all")&&e.attrNameTemplate||"",o=(e,t)=>P(n,e,t),r=t[o("BackgroundType")]||"";let l={},a={},i={};if("gradient"===r){let e={type:"linear",position:"",color_1:"",location_1:"",color_2:"",location_2:""};t[o("BackgroundGradientColor1")]&&(e.color_1=t[o("BackgroundGradientColor1")]),L(t[o("BackgroundGradientLocation1")])&&(e.location_1=V(t[o("BackgroundGradientLocation1")])+"%"),t[o("BackgroundGradientColor2")]&&(e.color_2=t[o("BackgroundGradientColor2")]),L(t[o("BackgroundGradientLocation2")])&&(e.location_2=V(t[o("BackgroundGradientLocation2")])+"%"),t[o("BackgroundGradientType")]&&(e.type=t[o("BackgroundGradientType")]),"linear"===e.type&&""!==t[o("BackgroundGradientTypeAngle")]?e.position=V(t[o("BackgroundGradientTypeAngle")])+"deg":"radial"===e.type&&t[o("BackgroundGradientTypePosition")]&&(e.position="at "+t[o("BackgroundGradientTypePosition")]),e.type&&e.position&&e.color_1&&e.location_1&&e.color_2&&e.location_2?(l.backgroundColor="transparent",l.backgroundImage=`${e.type}-gradient(${e.position}, ${e.color_1} ${e.location_1}, ${e.color_2} ${e.location_2})`):e.color_1&&(l.backgroundColor=e.color_1)}else"video"===r?!t[o("BackgroundVideoPlayOnMobile")]&&t[o("BackgroundVideoFallbackImage")]&&t[o("BackgroundVideoFallbackImage")].url&&(a.backgroundImage=`url(${t[o("BackgroundVideoFallbackImage")].url})`,a.backgroundPosition="center",a.backgroundSize="cover"):(t[o("BackgroundColor")]&&(l.backgroundColor=t[o("BackgroundColor")]),i=qe({attrNameTemplate:n,blockAttributes:t}));return pe()({desktop:l,tablet:{},mobile:a},i)};Ee.defaultProps={attrNameTemplate:"",blockAttributes:{}};const Te=Ee,Oe=e=>{const{blockAttributes:t}=e,n=L(e,"all")&&e.attrNameTemplate||"",o=L(e,"all")&&e.disableWidthDirections||[],r=!L(e,"all")||(e.allowBorderColor??!0),l=(e,t)=>P(n,e,t);let a={},i={};const s=!L(e,"all")||(e.allowBorderRadius??!0)?xe({blockAttributes:t,attrNameTemplate:n,attrName:"BorderRadius",disableDirections:o}):{};return t[l("BorderStyle")]&&(a.borderStyle=t[l("BorderStyle")],r&&t[l("BorderColor")]&&(a.borderColor=t[l("BorderColor")]),i=xe({attrNameTemplate:n,attrName:"BorderWidth",blockAttributes:t})),pe()({desktop:a,tablet:{},mobile:{}},i,s)};Oe.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0,blockAttributes:{}};const Pe=Oe,Ne=e=>{const{blockAttributes:t,excludeOptions:n}=e,o=L(e,"all")&&e.attrNameTemplate||"",r=(e,t)=>P(o,e,t);let l={},a={x:0,y:0,blur:0,spread:0,color:"",position:""};var i;return t[r("BoxShadowColor")]&&(a.color=t[r("BoxShadowColor")]),""!==t[r("BoxShadowHorizontal")]&&(a.x=t[r("BoxShadowHorizontal")]),""!==t[r("BoxShadowVertical")]&&(a.y=t[r("BoxShadowVertical")]),""!==t[r("BoxShadowBlur")]&&(a.blur=t[r("BoxShadowBlur")]),""!==t[r("BoxShadowSpread")]&&(a.spread=t[r("BoxShadowSpread")]),i="position",n&&n.length&&n.includes(i)||!t[r("BoxShadowPosition")]||(a.position=t[r("BoxShadowPosition")]),a.color&&(l.boxShadow=a.x+"px "+a.y+"px "+a.blur+"px "+a.spread+"px "+a.color+" "+a.position),{desktop:l,tablet:{},mobile:{}}};Ne.defaultProps={attrNameTemplate:"",blockAttributes:{}};const De=Ne,Re=e=>{const{blockAttributes:t}=e,n=(e,t="")=>P("",e,t),o=L(e,"all")&&e.excludePanels||[],r=L(e,"all")&&e.includePanels||[];let l=r&&r.length?r:["advanced","motion-effects","background","border","positioning","responsive"];o&&o.length&&o.forEach(e=>{l.splice(l.indexOf(e),1)});let a={},i={},s={},u={},c={};l.includes("advanced")&&(L(t[n("zIndex")])&&(a.zIndex=V(t[n("zIndex")])),u=xe({attrName:n("Margin"),blockAttributes:t}),c=xe({attrName:n("Padding"),blockAttributes:t})),l.includes("motion-effects")&&void 0!==t[n("EntranceAnimation")]&&""!==t[n("EntranceAnimation")]&&t[n("EntranceAnimationDelay")]&&(a.animationDelay=V(t[n("EntranceAnimationDelay")])+"ms");let p={};l.includes("background")&&(p=Te({attrNameTemplate:"Advanced",blockAttributes:t}));let m={};if(l.includes("border")){const e=Pe({attrNameTemplate:"Advanced",blockAttributes:t}),n=De({attrNameTemplate:"Advanced",blockAttributes:t});m=pe()(e,n)}if(l.includes("positioning")){L(t[n("BlockPosition")])&&(a.position=t[n("BlockPosition")]);const e=t[n("PositionHorizontalOrientation")],o=t[n("PositionVerticalOrientation")];Object.entries(y).map(([r])=>{let l=D(r),u={};"custom"!==t[n("BlockWidth")]&&"custom"!==t[n("BlockWidth",l)]||!t[n("BlockCustomWidth",l)]&&!t[n("BlockCustomWidthDecimal",l)]||(M(t[n("BlockCustomWidthUnit",l)])&&t[n("BlockCustomWidth",l)]?(u.width=parseInt(t[n("BlockCustomWidth",l)],10)+t[n("BlockCustomWidthUnit",l)],u.maxWidth=parseInt(t[n("BlockCustomWidth",l)],10)+t[n("BlockCustomWidthUnit",l)]):j(t[n("BlockCustomWidthUnit",l)])&&t[n("BlockCustomWidthDecimal",l)]&&(u.width=parseFloat(t[n("BlockCustomWidthDecimal",l)])+t[n("BlockCustomWidthUnit",l)],u.maxWidth=parseFloat(t[n("BlockCustomWidthDecimal",l)])+t[n("BlockCustomWidthUnit",l)])),""===U(t[n("PositionHorizontalOffset",l)])&&""===U(t[n("PositionHorizontalOffsetDecimal",l)])||(M(t[n("PositionHorizontalOffsetUnit",l)])&&""!==U(t[n("PositionHorizontalOffset",l)])?u[e]=parseInt(t[n("PositionHorizontalOffset",l)],10)+t[n("PositionHorizontalOffsetUnit",l)]:j(t[n("PositionHorizontalOffsetUnit",l)])&&""!==U(t[n("PositionHorizontalOffsetDecimal",l)])&&(u[e]=parseFloat(t[n("PositionHorizontalOffsetDecimal",l)])+t[n("PositionHorizontalOffsetUnit",l)])),""===U(t[n("PositionVerticalOffset",l)])&&""===U(t[n("PositionVerticalOffsetDecimal",l)])||(M(t[n("PositionVerticalOffsetUnit",l)])&&""!==U(t[n("PositionVerticalOffset",l)])?u[o]=parseInt(t[n("PositionVerticalOffset",l)],10)+t[n("PositionVerticalOffsetUnit",l)]:j(t[n("PositionVerticalOffsetUnit",l)])&&""!==U(t[n("PositionVerticalOffsetDecimal",l)])&&(u[o]=parseFloat(t[n("PositionVerticalOffsetDecimal",l)])+t[n("PositionVerticalOffsetUnit",l)])),Object.keys(u).length>0&&Object.entries(u).map(([e,t])=>{switch(r){case"desktop":a[e]=t;break;case"tablet":i[e]=t;break;case"mobile":s[e]=t}})})}return a={desktop:a,tablet:i,mobile:s},pe()(a,u,c,p,m)};Re.defaultProps={blockAttributes:{},excludePanels:[],includePanels:[]};const Be=Re,Me=e=>{const{unitType:t,unitValue:n,onChangeUnit:o}=e;if(e.units[t])return wp.element.createElement("ul",{className:"qodef-unit-control"},Object.entries(e.units[t]).map(([e,t],r)=>wp.element.createElement("li",{key:r},wp.element.createElement("a",{className:Ae()("qodef-unit",{"qodef--selected":("p"===e?"%":e)===n}),onClick:o,"data-unit":"p"===e?"%":e},t))))};Me.defaultProps={units:{typography:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},measure:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},space:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),em:(0,e.__)("em","qi-blocks")},height:{px:(0,e.__)("px","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},xPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},yPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxAndPercent:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks")},pxAndEm:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks")},pxEmVw:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxPercentVh:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxPercentVw:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxEmRem:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks")}},unitValue:"",onChangeUnit:()=>{}};const je=Me;class Ve extends we.Component{constructor(){super(...arguments),this.state={screen:h,isScreenPickerOpen:!1,isMouseOver:!1}}onChangeScreen(e,t){const n=this;n.state.isScreenPickerOpen?(n.props.onChangeScreen(e),n.setState({screen:e,isScreenPickerOpen:!1}),v=e,!t&&n.changePreviewScreen(e),(0,l.doAction)("qi-blocks-action-screen-change",e)):t||n.setState({isScreenPickerOpen:!0}),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-screens-option .qodef-screens.qodef--opened");t.length&&!t[0].contains(e.target)&&n.setState({isScreenPickerOpen:!1})})}onOtherScreenChange(e){this.props.onChangeScreen(e),this.setState({screen:e})}componentDidMount(){const{instanceId:e}=this.props;(0,l.addAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`,this.onOtherScreenChange.bind(this))}componentWillUnmount(){const{instanceId:e}=this.props;(0,l.removeAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`)}changeScreenControls(e){k()!==e.previewScreen&&this.onChangeScreen(e.previewScreen,!0)}changePreviewScreen(e){if(e!==this.props.previewScreen){const t=(0,a.dispatch)("core/edit-post")||"",n=(0,a.dispatch)("core/edit-site")||"";let o;if(t){let{__experimentalSetPreviewDeviceType:e}=t;o=e}if(n){const{__experimentalSetPreviewDeviceType:e}=n;o=e}o&&o(N(e))}}render(){const e={...this.props},t={...this.state},{label:n,screens:o,isWidgetsArea:r,previewScreen:l}=e;let a=!1;return(o.length<1||r)&&(a=!0),h!==l&&t.screen!==l&&this.onOtherScreenChange(l),this.changeScreenControls(e),wp.element.createElement("div",{className:"qodef-screens-option"},h!==t.screen&&wp.element.createElement("style",null,"\n\t\t\t\t\t\t\t.qodef-screens-option .qodef-screens.qodef--opened {\n\t\t\t\t\t\t\t\ttop: calc(-4px - 22px * "+Object.keys(o).indexOf(t.screen)+");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"),n&&wp.element.createElement("label",{className:"qodef-option-label"},n),!a&&wp.element.createElement("ul",{className:"qodef-screens "+(t.isScreenPickerOpen?"qodef--opened":"")},Object.entries(o).map(([e,n],r)=>r===Object.keys(o).indexOf(t.screen)||t.isScreenPickerOpen?wp.element.createElement("li",{className:"qodef-screen-item "+(e===t.screen?"qodef--selected":""),key:r},wp.element.createElement(_.Button,{className:"qodef-screen-item-button",onClick:()=>this.onChangeScreen(e),icon:n.icon,showTooltip:!1,label:n.label,"data-screen":e,onMouseEnter:()=>this.setState({isMouseOver:e}),onMouseLeave:()=>this.setState({isMouseOver:!1})}),e===t.isMouseOver&&wp.element.createElement("div",{className:"qodef-screen-item-tooltip"},n.label)):null)))}}Ve.defaultProps={label:"",screens:y,isWidgetsArea:!1,previewScreen:"desktop",onChangeScreen:()=>{}};const Le=(0,a.withSelect)(e=>{let t="desktop";return e("core/edit-post")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post").__experimentalGetPreviewDeviceType().toLowerCase()),e("core/edit-site")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{isWidgetsArea:e("core/edit-widgets")&&!e("core/edit-post"),previewScreen:t}})((0,_e.withInstanceId)(Ve));class Ue extends we.Component{constructor(){super(...arguments),this.state={screen:k(),linkedInputs:!1}}getScreenLabelSuffix(e){const t=e||this.state.screen;return D(t)}getAttributeValue(e,t=""){const{blockAttributes:n,allowScreens:o,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,repeaterGetAttributes:i}=this.props;let s=e;o&&t&&(s=e+t);let u=n[s];return r&&(u=i({key:a,childKey:s},l)),U(u)}setAttributeValue(e,t,n=""){const{setAttributes:o,allowScreens:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let u=e;r&&n&&(u=e+n),l?s({key:i,childKey:u},t,a):o({[u]:t})}render(){const t={...this.props},{label:n,allowScreens:o,rangeMax:r,rangeMin:l,rangeStep:a,rangeDecimalMax:i,rangeDecimalMin:s,rangeDecimalStep:u,repeater:c}=t,p=e=>P(t.attrNameTemplate,t.attrName,e),m=this.getScreenLabelSuffix(),d=p(),b=p("Unit"+m),f=["Top","Right","Bottom","Left"],g=()=>{const e=this.getAttributeValue(b)||"px";return M(e)},h="margin"===t.attrName.toLowerCase()||t.allowNegativeValues?-1*(g()?r:i):g()?l:s;return t.onChange=(e,t)=>{g()?this.setAttributeValue(p(t),V(e),m):this.setAttributeValue(p(`${t}Decimal`),V(e,"decimal"),m)},t.getValue=e=>{let t;return t=g()?""!==this.getAttributeValue(p(e),m)?parseInt(this.getAttributeValue(p(e),m),10):"":""!==this.getAttributeValue(p(`${e}Decimal`),m)?parseFloat(this.getAttributeValue(p(`${e}Decimal`),m)):"",t},t.getPlaceholderValue=e=>{let t="";return"Tablet"===m?t=g()?""!==this.getAttributeValue(p(e))?parseInt(this.getAttributeValue(p(e)),10):"":""!==this.getAttributeValue(p(`${e}Decimal`))?parseFloat(this.getAttributeValue(p(`${e}Decimal`))):"":"Mobile"===m&&(g()?""!==this.getAttributeValue(p(e),"Tablet")?t=parseInt(this.getAttributeValue(p(e),"Tablet"),10):""!==this.getAttributeValue(p(e))&&(t=parseInt(this.getAttributeValue(p(e)),10)):""!==this.getAttributeValue(p(`${e}Decimal`),"Tablet")?t=parseInt(this.getAttributeValue(p(`${e}Decimal`),"Tablet"),10):""!==this.getAttributeValue(p(`${e}Decimal`))&&(t=parseInt(this.getAttributeValue(p(`${e}Decimal`)),10))),t},t.getRangeValue=()=>{let e="";return[...f].some(n=>{t.disableDirections.includes(n)||(e=t.getValue(n))}),e},t.onRangeChange=e=>{[...f].map(n=>{t.disableDirections.length>0&&t.disableDirections.includes(n)?t.onChange("",n):t.onChange(e,n)})},t.onChangeScreen=e=>{this.setState({screen:e})},t.onLinkInputs=e=>{e.preventDefault(),this.state.linkedInputs||[...f].map(e=>{t.disableDirections.length>0&&t.disableDirections.includes(e)?t.onChange("",e):t.onChange(t.getValue("Top"),e)}),this.setState({linkedInputs:!this.state.linkedInputs})},t.onChangeUnit=e=>{e.preventDefault();const t=c?200:0,n=e.target.getAttribute("data-unit"),o=this.getAttributeValue(b)||"px";this.setAttributeValue(b,n),setTimeout(()=>{n!==o&&[...f].map(e=>{const t=d+e,r=`${t}Decimal`;let l=t+m,a=r+m;"px"!==n&&(l=r+m),"px"===o&&(a=t+m,this.setAttributeValue(a,"")),this.setAttributeValue(l,this.getAttributeValue(a))})},t)},wp.element.createElement(_.BaseControl,{className:"qodef-input-control"},wp.element.createElement("div",{className:"qodef-control-heading"},o?wp.element.createElement("div",{className:"qodef-input-control-screens"},wp.element.createElement(Le,{label:n,onChangeScreen:t.onChangeScreen})):wp.element.createElement("label",{className:"qodef-option-label"},n),t.allowUnitControl&&wp.element.createElement(je,{unitType:t.unitType,unitValue:this.getAttributeValue(b),onChangeUnit:t.onChangeUnit}),t.allowLinkedControl&&wp.element.createElement(_.Button,{icon:this.state.linkedInputs?"editor-unlink":"admin-links",onClick:t.onLinkInputs,className:"qodef-link-inputs-button "+(this.state.linkedInputs?"linked":"unlinked")})),this.state.linkedInputs?wp.element.createElement(_.RangeControl,{min:l,max:g()?r:i,step:g()?a:u,onChange:t.onRangeChange,allowReset:!0,value:t.getRangeValue()}):wp.element.createElement("ul",null,[...f].map((n,o)=>wp.element.createElement("li",{className:"qodef-input-control-item",key:o},t.disableDirections.length>0&&t.disableDirections.includes(n)?wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("label",null,(0,e.__)(n,"qi-blocks")),wp.element.createElement("input",{className:"components-text-control__input",type:"text",disabled:!0,value:(0,e.__)("auto","qi-blocks")})):wp.element.createElement(_.TextControl,{type:"number",value:t.getValue(n),placeholder:t.getPlaceholderValue(n),onChange:e=>t.onChange(e,n),label:(0,e.__)(n,"qi-blocks"),min:h,max:g()?r:i,step:g()?a:u})))))}}Ue.defaultProps={label:"",attrNameTemplate:"",attrName:"",blockAttributes:{},setAttributes:()=>{},unitType:"space",allowScreens:!0,allowNegativeValues:!1,disableDirections:[],allowUnitControl:!0,allowLinkedControl:!0,rangeMax:600,rangeMin:0,rangeStep:1,rangeDecimalMax:100,rangeDecimalMin:0,rangeDecimalStep:.01,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Fe=Ue;class ze extends we.Component{constructor(){super(...arguments),this.state={screen:k()}}getScreenLabelSuffix(){return D(this.state.screen)}getAttributeValue(e,t=this.getScreenLabelSuffix()){const{blockAttributes:n,repeater:o,repeaterItemIndex:r,repeaterItemKey:l,repeaterGetAttributes:a}=this.props;let i=e;t&&(i=e+t);let s=n[i];return o&&(s=a({key:l,childKey:i},r)),U(s)}setAttributeValue(e,t,n=this.getScreenLabelSuffix()){const{setAttributes:o,setCustomEventOnChange:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let u=e;n&&(u=e+n),l?s({key:i,childKey:u},t,a):o({[u]:t}),r(t)}render(){const e={...this.props},{label:t,blockAttributeKey:n,selectOptions:o}=e;return e.onChangeScreen=e=>{this.setState({screen:e})},wp.element.createElement(_.BaseControl,{className:"qodef-advanced-select-option"},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},wp.element.createElement(Le,{label:t,onChangeScreen:e.onChangeScreen})),wp.element.createElement(_.SelectControl,{value:this.getAttributeValue(n),options:o,onChange:e=>this.setAttributeValue(n,e)}))}}ze.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},selectOptions:{},setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const He=ze,Ge=wp.blob,{entries:Ke,setPrototypeOf:$e,isFrozen:We,getPrototypeOf:Ye,getOwnPropertyDescriptor:Xe}=Object;let{freeze:Ze,seal:Je,create:Qe}=Object,{apply:et,construct:tt}="undefined"!=typeof Reflect&&Reflect;Ze||(Ze=function(e){return e}),Je||(Je=function(e){return e}),et||(et=function(e,t,n){return e.apply(t,n)}),tt||(tt=function(e,t){return new e(...t)});const nt=ht(Array.prototype.forEach),ot=ht(Array.prototype.lastIndexOf),rt=ht(Array.prototype.pop),lt=ht(Array.prototype.push),at=ht(Array.prototype.splice),it=ht(String.prototype.toLowerCase),st=ht(String.prototype.toString),ut=ht(String.prototype.match),ct=ht(String.prototype.replace),pt=ht(String.prototype.indexOf),mt=ht(String.prototype.trim),dt=ht(Object.prototype.hasOwnProperty),bt=ht(RegExp.prototype.test),ft=(gt=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tt(gt,t)});var gt;function ht(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return et(e,t,o)}}function yt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:it;$e&&$e(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(We(t)||(t[o]=e),r=e)}e[r]=!0}return e}function vt(e){for(let t=0;t<e.length;t++){dt(e,t)||(e[t]=null)}return e}function kt(e){const t=Qe(null);for(const[n,o]of Ke(e)){dt(e,n)&&(Array.isArray(o)?t[n]=vt(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=kt(o):t[n]=o)}return t}function _t(e,t){for(;null!==e;){const n=Xe(e,t);if(n){if(n.get)return ht(n.get);if("function"==typeof n.value)return ht(n.value)}e=Ye(e)}return function(){return null}}const wt=Ze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),St=Ze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),At=Ze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),It=Ze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xt=Ze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ct=Ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qt=Ze(["#text"]),Et=Ze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Tt=Ze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ot=Ze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pt=Ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Nt=Je(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dt=Je(/<%[\w\W]*|[\w\W]*%>/gm),Rt=Je(/\$\{[\w\W]*/gm),Bt=Je(/^data-[\-\w.\u00B7-\uFFFF]+$/),Mt=Je(/^aria-[\-\w]+$/),jt=Je(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vt=Je(/^(?:\w+script|data):/i),Lt=Je(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ut=Je(/^html$/i),Ft=Je(/^[a-z][.\w]*(-[.\w]+)+$/i);var zt=Object.freeze({__proto__:null,ARIA_ATTR:Mt,ATTR_WHITESPACE:Lt,CUSTOM_ELEMENT:Ft,DATA_ATTR:Bt,DOCTYPE_NAME:Ut,ERB_EXPR:Dt,IS_ALLOWED_URI:jt,IS_SCRIPT_OR_DATA:Vt,MUSTACHE_EXPR:Nt,TMPLIT_EXPR:Rt});const Ht=1,Gt=3,Kt=7,$t=8,Wt=9,Yt=function(){return"undefined"==typeof window?null:window};var Xt=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yt();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Wt||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,l=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:d,trustedTypes:b}=t,f=u.prototype,g=_t(f,"cloneNode"),h=_t(f,"remove"),y=_t(f,"nextSibling"),v=_t(f,"childNodes"),k=_t(f,"parentNode");if("function"==typeof i){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let _,w="";const{implementation:S,createNodeIterator:A,createDocumentFragment:I,getElementsByTagName:x}=o,{importNode:C}=r;let q={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ke&&"function"==typeof k&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:E,ERB_EXPR:T,TMPLIT_EXPR:O,DATA_ATTR:P,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:B}=zt;let{IS_ALLOWED_URI:M}=zt,j=null;const V=yt({},[...wt,...St,...At,...xt,...qt]);let L=null;const U=yt({},[...Et,...Tt,...Ot,...Pt]);let F=Object.seal(Qe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,H=null,G=!0,K=!0,$=!1,W=!0,Y=!1,X=!0,Z=!1,J=!1,Q=!1,ee=!1,te=!1,ne=!1,oe=!0,re=!1,le=!0,ae=!1,ie={},se=null;const ue=yt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const pe=yt({},["audio","video","img","source","image","track"]);let me=null;const de=yt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let he=ge,ye=!1,ve=null;const ke=yt({},[be,fe,ge],st);let _e=yt({},["mi","mo","mn","ms","mtext"]),we=yt({},["annotation-xml"]);const Se=yt({},["title","style","font","a","script"]);let Ae=null;const Ie=["application/xhtml+xml","text/html"];let xe=null,Ce=null;const qe=o.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=kt(e),Ae=-1===Ie.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,xe="application/xhtml+xml"===Ae?st:it,j=dt(e,"ALLOWED_TAGS")?yt({},e.ALLOWED_TAGS,xe):V,L=dt(e,"ALLOWED_ATTR")?yt({},e.ALLOWED_ATTR,xe):U,ve=dt(e,"ALLOWED_NAMESPACES")?yt({},e.ALLOWED_NAMESPACES,st):ke,me=dt(e,"ADD_URI_SAFE_ATTR")?yt(kt(de),e.ADD_URI_SAFE_ATTR,xe):de,ce=dt(e,"ADD_DATA_URI_TAGS")?yt(kt(pe),e.ADD_DATA_URI_TAGS,xe):pe,se=dt(e,"FORBID_CONTENTS")?yt({},e.FORBID_CONTENTS,xe):ue,z=dt(e,"FORBID_TAGS")?yt({},e.FORBID_TAGS,xe):kt({}),H=dt(e,"FORBID_ATTR")?yt({},e.FORBID_ATTR,xe):kt({}),ie=!!dt(e,"USE_PROFILES")&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,le=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||jt,he=e.NAMESPACE||ge,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,we=e.HTML_INTEGRATION_POINTS||we,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(K=!1),te&&(ee=!0),ie&&(j=yt({},qt),L=[],!0===ie.html&&(yt(j,wt),yt(L,Et)),!0===ie.svg&&(yt(j,St),yt(L,Tt),yt(L,Pt)),!0===ie.svgFilters&&(yt(j,At),yt(L,Tt),yt(L,Pt)),!0===ie.mathMl&&(yt(j,xt),yt(L,Ot),yt(L,Pt))),e.ADD_TAGS&&(j===V&&(j=kt(j)),yt(j,e.ADD_TAGS,xe)),e.ADD_ATTR&&(L===U&&(L=kt(L)),yt(L,e.ADD_ATTR,xe)),e.ADD_URI_SAFE_ATTR&&yt(me,e.ADD_URI_SAFE_ATTR,xe),e.FORBID_CONTENTS&&(se===ue&&(se=kt(se)),yt(se,e.FORBID_CONTENTS,xe)),le&&(j["#text"]=!0),Z&&yt(j,["html","head","body"]),j.table&&(yt(j,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,w=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(b,l)),null!==_&&"string"==typeof w&&(w=_.createHTML(""));Ze&&Ze(e),Ce=e}},Oe=yt({},[...St,...At,...It]),Pe=yt({},[...xt,...Ct]),Ne=function(e){lt(n.removed,{element:e});try{k(e).removeChild(e)}catch(t){h(e)}},De=function(e,t){try{lt(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){lt(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=ut(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ae&&he===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=_?_.createHTML(e):e;if(he===ge)try{t=(new d).parseFromString(r,Ae)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(he,"template",null);try{t.documentElement.innerHTML=ye?w:r}catch(e){}}const l=t.body||t.documentElement;return e&&n&&l.insertBefore(o.createTextNode(n),l.childNodes[0]||null),he===ge?x.call(t,Z?"html":"body")[0]:Z?t.documentElement:l},Be=function(e){return A.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Me=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof s&&e instanceof s};function Ve(e,t,o){nt(e,e=>{e.call(n,t,o,Ce)})}const Le=function(e){let t=null;if(Ve(q.beforeSanitizeElements,e,null),Me(e))return Ne(e),!0;const o=xe(e.nodeName);if(Ve(q.uponSanitizeElement,e,{tagName:o,allowedTags:j}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&bt(/<[/\w!]/g,e.innerHTML)&&bt(/<[/\w!]/g,e.textContent))return Ne(e),!0;if(e.nodeType===Kt)return Ne(e),!0;if(X&&e.nodeType===$t&&bt(/<[/\w]/g,e.data))return Ne(e),!0;if(!j[o]||z[o]){if(!z[o]&&Fe(o)){if(F.tagNameCheck instanceof RegExp&&bt(F.tagNameCheck,o))return!1;if(F.tagNameCheck instanceof Function&&F.tagNameCheck(o))return!1}if(le&&!se[o]){const t=k(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=g(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,y(e))}}}return Ne(e),!0}return e instanceof u&&!function(e){let t=k(e);t&&t.tagName||(t={namespaceURI:he,tagName:"template"});const n=it(e.tagName),o=it(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===ge?"svg"===n:t.namespaceURI===be?"svg"===n&&("annotation-xml"===o||_e[o]):Boolean(Oe[n]):e.namespaceURI===be?t.namespaceURI===ge?"math"===n:t.namespaceURI===fe?"math"===n&&we[o]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===fe&&!we[o])&&!(t.namespaceURI===be&&!_e[o])&&!Pe[n]&&(Se[n]||!Oe[n]):!("application/xhtml+xml"!==Ae||!ve[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!bt(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Gt&&(t=e.textContent,nt([E,T,O],e=>{t=ct(t,e," ")}),e.textContent!==t&&(lt(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ve(q.afterSanitizeElements,e,null),!1):(Ne(e),!0)},Ue=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in o||n in qe))return!1;if(K&&!H[t]&&bt(P,t));else if(G&&bt(N,t));else if(!L[t]||H[t]){if(!(Fe(e)&&(F.tagNameCheck instanceof RegExp&&bt(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&bt(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&bt(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(me[t]);else if(bt(M,ct(n,R,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==pt(n,"data:")||!ce[e]){if($&&!bt(D,ct(n,R,"")));else if(n)return!1}else;return!0},Fe=function(e){return"annotation-xml"!==e&&ut(e,B)},ze=function(e){Ve(q.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Me(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let r=t.length;for(;r--;){const l=t[r],{name:a,namespaceURI:i,value:s}=l,u=xe(a),c=s;let p="value"===a?c:mt(c);if(o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,Ve(q.uponSanitizeAttribute,e,o),p=o.attrValue,!re||"id"!==u&&"name"!==u||(De(a,e),p="user-content-"+p),X&&bt(/((--!?|])>)|<\/(style|title)/i,p)){De(a,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){De(a,e);continue}if(!W&&bt(/\/>/i,p)){De(a,e);continue}Y&&nt([E,T,O],e=>{p=ct(p,e," ")});const m=xe(e.nodeName);if(Ue(m,u,p)){if(_&&"object"==typeof b&&"function"==typeof b.getAttributeType)if(i);else switch(b.getAttributeType(m,u)){case"TrustedHTML":p=_.createHTML(p);break;case"TrustedScriptURL":p=_.createScriptURL(p)}if(p!==c)try{i?e.setAttributeNS(i,a,p):e.setAttribute(a,p),Me(e)?Ne(e):rt(n.removed)}catch(t){De(a,e)}}else De(a,e)}Ve(q.afterSanitizeAttributes,e,null)},He=function e(t){let n=null;const o=Be(t);for(Ve(q.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Ve(q.uponSanitizeShadowNode,n,null),Le(n),ze(n),n.content instanceof a&&e(n.content);Ve(q.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,i=null,u=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw ft("toString is not a function");if("string"!=typeof(e=e.toString()))throw ft("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Te(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=xe(e.nodeName);if(!j[t]||z[t])throw ft("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)o=Re("\x3c!----\x3e"),l=o.ownerDocument.importNode(e,!0),l.nodeType===Ht&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!ee&&!Y&&!Z&&-1===e.indexOf("<"))return _&&ne?_.createHTML(e):e;if(o=Re(e),!o)return ee?null:ne?w:""}o&&Q&&Ne(o.firstChild);const c=Be(ae?e:o);for(;i=c.nextNode();)Le(i),ze(i),i.content instanceof a&&He(i.content);if(ae)return e;if(ee){if(te)for(u=I.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(L.shadowroot||L.shadowrootmode)&&(u=C.call(r,u,!0)),u}let p=Z?o.outerHTML:o.innerHTML;return Z&&j["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&bt(Ut,o.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+p),Y&&nt([E,T,O],e=>{p=ct(p,e," ")}),_&&ne?_.createHTML(p):p},n.setConfig=function(){Te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Ce=null,J=!1},n.isValidAttribute=function(e,t,n){Ce||Te({});const o=xe(e),r=xe(t);return Ue(o,r,n)},n.addHook=function(e,t){"function"==typeof t&<(q[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=ot(q[e],t);return-1===n?void 0:at(q[e],n,1)[0]}return rt(q[e])},n.removeHooks=function(e){q[e]=[]},n.removeAllHooks=function(){q={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();class Zt extends we.Component{constructor(){super(...arguments),this.state={screen:k(),imageId:"",externalImageIsSet:!1,imageSizeNotExist:!1}}getScreenLabelSuffix(){return D(this.state.screen)}getAttributeValue(e=this.getScreenLabelSuffix()){const{blockAttributeKey:t,blockAttributes:n,allowScreens:o,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,isSimpleRepeaterValue:i,repeaterGetAttributes:s}=this.props;let u=t;o&&e&&(u=t+e);let c=n[u];if(r){let n=i?null:t;o&&e&&(n=i?this.state.screen:u),c=s({key:a,childKey:n},l)||{}}return U(c)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:n,allowScreens:o,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,isSimpleRepeaterValue:i,repeaterSetAttributes:s}=this.props,u=this.getScreenLabelSuffix();let c=t;if(o&&u&&(c=t+u),r){let n=i?null:t;o&&u&&(n=i?this.state.screen:c),s({key:a,childKey:n},e,l)}else n({[c]:e})}componentDidMount(){const{allowScreens:e,allowDefaultImage:t}=this.props,{url:n,id:o,defaultValueIsSet:r}=this.getAttributeValue("");if(n&&!n.includes(qiBlocksEditor.vars.siteURL))this.onSelectURL(n),this.setState({externalImageIsSet:!0});else{o&&(this.setState({imageId:o}),this.updateImageSizeOption(o)),!t||r||n||o||(this.setAttributeValue({id:null,url:qiBlocksEditor.vars.defaultImage,alt:qiBlocksEditor.vars.defaultImagePlaceholder,caption:"",width:1200,height:800,custom_image_size:"",html:""}),this.setState({defaultImageIsSet:!0}));const l=[""];e&&(l.push("Tablet"),l.push("Mobile")),l.map(e=>{const{url:t,id:n}=this.getAttributeValue(e);t&&(0,Ge.isBlobURL)(t)&&!n&&this.setAttributeValue({url:"",alt:"",caption:"",width:"",height:"",html:""})})}}setSVGIcon=(e,t,n,o)=>{const r=new XMLHttpRequest;null!=r&&(r.open("GET",t,!0),r.onreadystatechange=()=>{4===r.readyState&&200===r.status&&this.setAttributeValue({id:e,url:t,alt:n,caption:o,html:Xt.sanitize(r.responseText,{USE_PROFILES:{svg:!0,svgFilters:!0}})})},r.send())};onSelectImage=({id:e,url:t,alt:n,caption:o,width:r,height:l})=>{t.includes(".svg")?this.setSVGIcon(e,t,n,o):this.setAttributeValue({id:e,url:t,alt:n,caption:o,width:r,height:l}),this.setState({imageId:e,externalImageIsSet:!1}),this.updateImageSizeOption(e)};updateImageSizeOption=e=>{if(this.props.allowImageSizes){const t=setInterval(()=>{(0,a.select)("core").getMedia(e)&&(clearInterval(t),this.forceUpdate())},1e3)}};onSelectURL=e=>{e.includes(".svg")?this.setSVGIcon(null,e,"",""):this.setAttributeValue({id:null,url:e,alt:"",caption:"",width:"",height:"",html:""}),this.setState({externalImageIsSet:!1})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeImage=()=>{this.setAttributeValue({id:null,url:"",alt:"",caption:"",width:"",height:"",html:"",defaultValueIsSet:!!this.props.allowDefaultImage})};onImageSizeChange=e=>{const{customImageSizes:t}=this.props,n=(0,a.select)("core").getMedia(this.state.imageId);if(n){let o=e;t&&t.length>1&&(o=this.getImageURLbySize(e)||n.source_url),"custom"===e&&(o=n.source_url),this.setAttributeValue({id:n.id,url:o,alt:n.alt_text||"",caption:n.caption&&n.caption.raw||"",custom_image_size:e})}};getImageURLbySize(e){const t=this.getAttributeValue();let n="";if(t){const o=(0,a.select)("core").getMedia(t.id);if(!o)return"";const r=o.media_details.sizes;if(r&&0===Object.keys(r).length)this.setState({imageSizeNotExist:!0});else{this.setState({imageSizeNotExist:!1});for(const t in r)if(t.includes("qi_blocks_image_size_"+e.replace("-","_"))){n=r[t].source_url;break}}["","custom"].includes(e)&&this.setState({imageSizeNotExist:!1})}return n}getImageSizes(){const{imageSizes:t,customImageSizes:n}=this.props,o=this.getAttributeValue();let r=[];if(o){const l=(0,a.select)("core").getMedia(o.id);if(!l)return[];const i=l.media_details.sizes;if(i&&0===Object.keys(i).length&&r.push({label:(0,e.__)("Default","qi-blocks"),value:""}),n&&n.length>1)n.map(e=>{r.push({label:e.label,value:e.value})});else for(const e in i){const n=i[e],o=t.find(t=>t.slug===e);o&&r.push({label:o.name,value:n.source_url})}}return r}render(){const t={...this.props},n={...this.state},{label:o,help:r,noticeUI:l,allowedTypes:a,allowScreens:i,allowImageSizes:s}=t,u=this.getAttributeValue(),{id:c,url:p,alt:m,html:d}=u;t.onChangeScreen=e=>{this.setState({screen:e}),this.updateImageSizeOption(c)};let b=["qodef-image-option"];return p&&p.includes(".svg")&&b.push("qodef--svg"),wp.element.createElement(_.BaseControl,{className:b.join(" ")},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},i?wp.element.createElement(Le,{label:o,onChangeScreen:t.onChangeScreen}):wp.element.createElement(wp.element.Fragment,null,o&&wp.element.createElement("label",{className:"qodef-option-label"},o))),r&&wp.element.createElement("p",{className:"qodef-option-description"},r),p?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:"qodef-image-option-inner"},(0,Ge.isBlobURL)(p)&&wp.element.createElement("div",{className:"qodef-image-option-spinner"},wp.element.createElement(_.Spinner,null)),wp.element.createElement(ke.MediaUploadCheck,null,wp.element.createElement(ke.MediaUpload,{allowedTypes:a,value:c,onSelect:this.onSelectImage,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("img",{src:p,alt:m}),wp.element.createElement("div",{className:"qodef-image-option-actions"},wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Image","qi-blocks"),onClick:t}),wp.element.createElement(_.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Image","qi-blocks"),onClick:this.removeImage})))}))),n.imageSizeNotExist&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("The Image has no predefined sizes, please set a custom image size.","qi-blocks")),n.externalImageIsSet&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("External image URL is set, please upload your image for this Element.","qi-blocks"))):wp.element.createElement(ke.MediaPlaceholder,{allowedTypes:a,icon:"format-image",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:l}),s&&c&&!d&&wp.element.createElement("div",{className:"qodef-image-option-sizes"},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Image Size","qi-blocks"),options:this.getImageSizes(),onChange:this.onImageSizeChange,value:void 0!==u.custom_image_size?u.custom_image_size:p})))}}Zt.defaultProps={label:(0,e.__)("Image","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},allowedTypes:["image"],allowScreens:!1,allowDefaultImage:!1,allowImageSizes:!1,customImageSizes:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!0,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Jt=(0,a.withSelect)(e=>({imageSizes:e("core/block-editor")?.getSettings()?.imageSizes}))((0,_.withNotices)(Zt));class Qt extends we.Component{constructor(){super(...arguments),this.state={isPickerVisible:!1}}getAttributeValue(){const{defaultColor:e,blockAttributeKey:t,blockAttributes:n,repeater:o,repeaterItemIndex:r,repeaterItemKey:l,isSimpleRepeaterValue:a,repeaterGetAttributes:i}=this.props;let s=n[t];return o&&(s=i({key:l,childKey:a?"":t},r)),s||e}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:n,repeater:o,repeaterItemIndex:r,repeaterItemKey:l,isSimpleRepeaterValue:a,repeaterSetAttributes:i}=this.props;o?i({key:l,childKey:a?"":t},e,r):n({[t]:e})}onChange=e=>{const{r:t,g:n,b:o,a:r}=e.rgb;let l="rgba("+[t,n,o,r].join(",")+")";this.props.setHEXValue&&(l=e.hex),this.setState({colorReset:!0}),this.setAttributeValue(l)};onClick=e=>{e.preventDefault();const t=this;t.setState({isPickerVisible:!this.state.isPickerVisible}),window.addEventListener("click",e=>{const n=document.querySelectorAll(".qodef-color-option.qodef--opened");n.length&&n.forEach(n=>{n.contains(e.target)||t.setState({isPickerVisible:!1})})})};onResetColor=e=>{e.preventDefault(),this.setState({isPickerVisible:!this.state.isPickerVisible}),this.setAttributeValue("")};render(){const{label:t,popup:n}=this.props;return wp.element.createElement(_.BaseControl,{className:"qodef-color-option "+(this.state.isPickerVisible?"qodef--opened":"")},wp.element.createElement("div",{className:"qodef-control-heading"},t&&wp.element.createElement("label",{className:"qodef-option-label"},t),wp.element.createElement(_.Button,{onClick:this.onClick,className:"qodef-color-indicator-button"},wp.element.createElement(_.ColorIndicator,{colorValue:this.getAttributeValue(),className:"qodef-color-indicator"}))),this.state.isPickerVisible&&wp.element.createElement("div",{className:`qodef-color-picker-wrapper ${n&&"qodef--popup"}`},wp.element.createElement(_.ColorPicker,{color:this.getAttributeValue(),onChangeComplete:this.onChange,disableAlpha:this.props.setHEXValue}),wp.element.createElement(_.Button,{onClick:this.onResetColor,isSecondary:!0},(0,e.__)("Reset Color","qi-blocks"))))}}Qt.defaultProps={label:(0,e.__)("Color","qi-blocks"),defaultColor:"#000",setHEXValue:!1,blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},popup:!0,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const en=Qt;class tn extends we.Component{getAttributeValue(){const{blockAttributeKey:e,blockAttributes:t,repeater:n,repeaterItemIndex:o,repeaterItemKey:r,repeaterGetAttributes:l}=this.props;let a=t[e];return n&&(a=l({key:r},o)||{}),U(a)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:n,repeater:o,repeaterItemIndex:r,repeaterItemKey:l,repeaterSetAttributes:a}=this.props;o?a({key:l},e,r):n({[t]:e})}componentDidMount(){const{url:e,id:t}=this.getAttributeValue();e&&(0,Ge.isBlobURL)(e)&&!t&&this.setAttributeValue({url:"",alt:""})}onSelectVideo=({id:e,url:t,alt:n})=>{this.setAttributeValue({id:e,url:t,alt:n})};onSelectURL=e=>{this.setAttributeValue({id:null,url:e,alt:""})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeVideo=()=>{this.setAttributeValue({id:null,url:"",alt:""})};render(){const t={...this.props},{label:n,description:o,noticeUI:r}=t,{id:l,url:a}=this.getAttributeValue();return wp.element.createElement(_.BaseControl,{className:"qodef-video-option"},n&&wp.element.createElement("label",{className:"qodef-option-label"},n),o&&wp.element.createElement("p",{className:"qodef-option-description"},o),a?wp.element.createElement("div",{className:"qodef-video-option-inner"},(0,Ge.isBlobURL)(a)&&wp.element.createElement("div",{className:"qodef-video-option-spinner"},wp.element.createElement(_.Spinner,null)),wp.element.createElement(ke.MediaUploadCheck,null,wp.element.createElement(ke.MediaUpload,{allowedTypes:["video"],value:l,onSelect:this.onSelectVideo,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("video",{src:a}),wp.element.createElement("div",{className:"qodef-video-option-actions"},wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Video","qi-blocks"),onClick:t}),wp.element.createElement(_.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Video","qi-blocks"),onClick:this.removeVideo})))}))):wp.element.createElement(ke.MediaPlaceholder,{allowedTypes:["video"],icon:"format-video",onSelect:this.onSelectVideo,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:r}))}}tn.defaultProps={label:(0,e.__)("Video","qi-blocks"),description:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const nn=(0,_.withNotices)(tn),on=qiBlocksEditor.vars.defaultFontSize,rn=qiBlocksEditor.vars.defaultLineHeight,ln=e=>{const{convertorType:t,value:n,attributeKey:o}=e;let r=1;o.includes("FontSize")||o.includes("fontSize")?r=on:(o.includes("LineHeight")||o.includes("lineHeight"))&&(r=rn);const l=e=>Math.round(parseInt(e,10)/r*100)/100,a=e=>Math.round(parseInt(e,10)/r*100)/100,i=e=>Math.round(parseFloat(e)/r*100),s=e=>Math.round(100*parseInt(e,10)/window.innerWidth),u=e=>Math.round(100*parseInt(e,10)/window.innerHeight),c=e=>Math.round(parseFloat(e)*r),p=e=>Math.round(parseFloat(e)*r/100),m=e=>Math.round(window.innerWidth*parseInt(e,10)/100),d=e=>Math.round(window.innerHeight*parseInt(e,10)/100);let b="";if(""!==n&&""!==o&&""!==t)switch(t){case"pxToEm":b=l(n);break;case"pxToRem":b=a(n);break;case"pxToP":b=i(n);break;case"pxToVw":b=s(n);break;case"pxToVh":b=u(n);break;case"emToPx":b=c(n);break;case"emToRem":case"remToRem":case"vwToVh":case"vhToVw":b=n;break;case"emToP":case"remToP":b=(e=>100*parseFloat(e))(n);break;case"emToVw":case"remToVw":b=(e=>s(c(e)))(n);break;case"emToVh":case"remToVh":b=(e=>u(c(e)))(n);break;case"remToPx":b=(e=>Math.round(parseFloat(e)*r))(n);break;case"pToPx":b=p(n);break;case"pToEm":case"pToRem":b=(e=>parseFloat(e)/100)(n);break;case"pToVw":b=(e=>s(p(e)))(n);break;case"pToVh":b=(e=>u(p(e)))(n);break;case"vwToPx":b=m(n);break;case"vwToEm":b=(e=>l(m(e)))(n);break;case"vwToRem":b=(e=>a(m(e)))(n);break;case"vwToP":b=(e=>i(m(e)))(n);break;case"vhToPx":b=d(n);break;case"vhToEm":b=(e=>l(d(e)))(n);break;case"vhToRem":b=(e=>a(d(e)))(n);break;case"vhToP":b=(e=>i(d(e)))(n)}return b};ln.defaultProps={convertorType:"pxToEm"};const an=ln;class sn extends we.Component{constructor(){super(...arguments),this.state={screen:k()}}getScreenLabelSuffix(e){const t=e||this.state.screen;return D(t)}getAttributeValue(e,t=""){const{blockAttributes:n,allowScreens:o,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,repeaterGetAttributes:i}=this.props;let s=e;o&&t&&(s=e+t);let u=n[s];return r&&(u=i({key:a,childKey:s},l)),U(u)}setAttributeValue(e,t,n=this.getScreenLabelSuffix()){const{setAttributes:o,allowScreens:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let u=e;r&&n&&(u=e+n),l?s({key:i,childKey:u},t,a):o({[u]:t})}onChangeUnitsValues(e,t,n,o){const r={...this.props},{rangeMax:l,rangeDecimalMax:a,allowUnitsConvertor:i}=r;let s=this.getAttributeValue(t);const u=s;o?(s=parseInt(s,10),s>l&&(s=l)):!o&&s>a&&(s=a),i?["emToRem","remToEm","vwToVh","vhToVw"].includes(n)||(this.setAttributeValue(e,an({convertorType:n,value:u,attributeKey:t}),""),this.setAttributeValue(t,"","")):(this.setAttributeValue(e,s,""),this.setAttributeValue(t,"",""))}render(){const e={...this.props},{label:t,unitType:n,blockAttributeKey:o,rangeMax:r,rangeMin:l,rangeStep:a,rangeDecimalMax:i,rangeDecimalMin:s,rangeDecimalStep:u,optionType:c,allowReset:p,allowScreens:m,allowUnits:d,repeater:b,repeaterItemKey:f,isSimpleRepeaterValue:g}=e,h=this.getScreenLabelSuffix();let y=b&&!g?f:o;const v=`${y}Decimal`,k=`${y}Unit`,w=`${y}Tablet`,S=`${v}Tablet`,A=`${k}Tablet`,I=`${y}Mobile`,x=`${v}Mobile`,C=`${k}Mobile`;return e.onChangeScreen=e=>{this.setState({screen:e})},e.onChangeUnit=e=>{e.preventDefault();const t=b?200:0,n=e.target.getAttribute("data-unit"),o=this.getAttributeValue(k,h)||"px";this.setAttributeValue(k,n),setTimeout(()=>{if(n!==o){const e=`${o}To${N(n)}`;let t=y+h,r=v+h;"px"!==n&&(t=v+h,r=y+h),this.onChangeUnitsValues(t,r,e,"px"===n)}},t)},e.onChange=t=>{this.setAttributeValue(y,t),e.setCustomEventOnChange()},e.onChangeDecimal=t=>{let n=0;"decimal"===c&&void 0===t&&(n=200),setTimeout(()=>{this.setAttributeValue(v,t),e.setCustomEventOnChange()},n)},e.getPlaceholderValue=e=>{let t="";const n=this.getAttributeValue(y),o=this.getAttributeValue(v),r=this.getAttributeValue(w),l=this.getAttributeValue(S);return"Tablet"===h?e&&""===r?t=n:e||""!==l||(t=o):"Mobile"===h&&(e&&""===this.getAttributeValue(I)?t=""!==r?r:n:e||""!==this.getAttributeValue(x)||(t=""!==l?l:o)),t},wp.element.createElement(_.BaseControl,{className:"qodef-advanced-range-option"},wp.element.createElement("div",{className:"qodef-advanced-range-heading"},m?wp.element.createElement(Le,{label:t,onChangeScreen:e.onChangeScreen}):wp.element.createElement("label",{className:"qodef-option-label"},t),d&&wp.element.createElement(je,{unitType:n,unitValue:this.getAttributeValue(k,h),onChangeUnit:e.onChangeUnit})),"desktop"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(M(this.getAttributeValue(k))&&"decimal"!==c||!d&&"integer"===c)&&wp.element.createElement(_.RangeControl,{min:l,max:r,step:a,value:this.getAttributeValue(y),onChange:e.onChange,allowReset:p}),(j(this.getAttributeValue(k))||!d&&"decimal"===c)&&wp.element.createElement(_.RangeControl,{min:s,max:i,step:u,value:this.getAttributeValue(v),onChange:e.onChangeDecimal,allowReset:p})),"tablet"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(M(this.getAttributeValue(A))&&"decimal"!==c||!d&&"integer"===c)&&wp.element.createElement(_.RangeControl,{min:l,max:r,step:a,value:this.getAttributeValue(w),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:p}),(j(this.getAttributeValue(A))||!d&&"decimal"===c)&&wp.element.createElement(_.RangeControl,{min:s,max:i,step:u,value:this.getAttributeValue(S),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:p})),"mobile"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(M(this.getAttributeValue(C))&&"decimal"!==c||!d&&"integer"===c)&&wp.element.createElement(_.RangeControl,{min:l,max:r,step:a,value:this.getAttributeValue(I),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:p}),(j(this.getAttributeValue(C))||!d&&"decimal"===c)&&wp.element.createElement(_.RangeControl,{min:s,max:i,step:u,value:this.getAttributeValue(x),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:p})))}}sn.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),unitType:"typography",blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},rangeMax:300,rangeMin:0,rangeStep:1,rangeDecimalMax:10,rangeDecimalMin:0,rangeDecimalStep:.01,optionType:"integer",allowReset:!0,screens:y,allowScreens:!1,allowUnits:!0,allowUnitsConvertor:!1,setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const un=sn,cn=t=>{const n={...t},{attrNameTemplate:o,attrName:r,blockAttributes:l,setAttributes:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p,previewScreen:m}=n,d=r||"Background",b=e=>P(o,d+e);n.getAttributeValue=(e,t="")=>{let n=e;t&&(n=e+t);let o=l[n];return i&&(o=p({key:u,childKey:n},s)),U(o)},n.setAttributeValue=(e,t,n="")=>{let o=e;n&&(o=e+n),i?c({key:u,childKey:o},t,s):a({[o]:t})};let f=D(m||k());return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Jt,{label:(0,e.__)(`${d} Image`,"qi-blocks"),blockAttributeKey:b("Image"),blockAttributes:l,setAttributes:a,allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,isSimpleRepeaterValue:!1,repeaterSetAttributes:c,repeaterGetAttributes:p}),n.getAttributeValue(b("Image"))&&n.getAttributeValue(b("Image")).url&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(He,{label:(0,e.__)(`${d} Position`,"qi-blocks"),blockAttributeKey:b("Position"),blockAttributes:l,setAttributes:a,selectOptions:F("background_position",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),(""===f&&"custom"===n.getAttributeValue(b("Position"))||""!==f&&"custom"===n.getAttributeValue(b("Position"),f)||""!==f&&"custom"===n.getAttributeValue(b("Position"))&&["","custom"].includes(n.getAttributeValue(b("Position"),"Tablet"))&&""===n.getAttributeValue(b("Position"),f))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(un,{label:(0,e.__)("X Position","qi-blocks"),blockAttributeKey:b("XPosition"),setAttributes:a,blockAttributes:l,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"xPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(un,{label:(0,e.__)("Y Position","qi-blocks"),blockAttributeKey:b("YPosition"),setAttributes:a,blockAttributes:l,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"yPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p})),wp.element.createElement(_.SelectControl,{label:(0,e.__)(`${d} Attachment`,"qi-blocks"),value:n.getAttributeValue(b("Attachment")),options:F("background_attachment")||"",onChange:e=>n.setAttributeValue(b("Attachment"),e)}),wp.element.createElement(He,{label:(0,e.__)(`${d} Repeat`,"qi-blocks"),blockAttributeKey:b("Repeat"),blockAttributes:l,setAttributes:a,selectOptions:F("background_repeat"),repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(He,{label:(0,e.__)(`${d} Size`,"qi-blocks"),blockAttributeKey:b("Size"),blockAttributes:l,setAttributes:a,selectOptions:F("background_size",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),"custom"===n.getAttributeValue(b("Size"),f)&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(un,{label:(0,e.__)("Custom Width","qi-blocks"),blockAttributeKey:b("SizeWidth"),setAttributes:a,blockAttributes:l,rangeMax:1e3,rangeMin:0,rangeDecimalMax:100,rangeDecimalMin:0,unitType:"xPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}))))};cn.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const pn=cn,mn=t=>{const n={...t},{attrNameTemplate:o,blockAttributes:r,setAttributes:l,includeVideoBG:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p,previewScreen:m}=n,d=e=>P(o,e);n.getAttributeValue=(e,t="")=>{let n=r[e];if(i){let o=e;t&&(o=e+t),n=p({key:u,childKey:o},s)}return U(n)},n.setAttributeValue=(e,t,n="")=>{if(i){let o=e;n&&(o=e+n),c({key:u,childKey:o},t,s)}else l({[e+n]:t})};const b=[{label:(0,e.__)("Classic","qi-blocks"),value:""},{label:(0,e.__)("Gradient","qi-blocks"),value:"gradient"}];return a&&b.push({label:(0,e.__)("Video","qi-blocks"),value:"video"}),wp.element.createElement("div",{className:"qodef-background-panel"},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Background Type","qi-blocks"),value:n.getAttributeValue(d("BackgroundType")),options:b,onChange:e=>n.setAttributeValue(d("BackgroundType"),e)}),""===n.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(en,{label:(0,e.__)("Background Color","qi-blocks"),blockAttributeKey:d("BackgroundColor"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(pn,{attrNameTemplate:o,blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p,previewScreen:m})),"gradient"===n.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(en,{label:(0,e.__)("First Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor1"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientLocation1")),onChange:e=>n.setAttributeValue(d("BackgroundGradientLocation1"),e),min:0,max:100,step:1}),wp.element.createElement(en,{label:(0,e.__)("Second Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor2"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientLocation2")),onChange:e=>n.setAttributeValue(d("BackgroundGradientLocation2"),e),min:0,max:100,step:1}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Gradient Type","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientType")),options:[{label:(0,e.__)("Linear","qi-blocks"),value:"linear"},{label:(0,e.__)("Radial","qi-blocks"),value:"radial"}],onChange:e=>n.setAttributeValue(d("BackgroundGradientType"),e)}),"linear"===n.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(_.RangeControl,{label:(0,e.__)("Angle","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientTypeAngle")),onChange:e=>n.setAttributeValue(d("BackgroundGradientTypeAngle"),e),min:0,max:360,step:1}),"radial"===n.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:n.getAttributeValue(d("BackgroundGradientTypePosition")),options:F("background_position",!1),onChange:e=>n.setAttributeValue(d("BackgroundGradientTypePosition"),e)})),"video"===n.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(nn,{label:(0,e.__)("Video Link","qi-blocks"),description:(0,e.__)("Self hosted video file (mp4 is recommended)","qi-blocks"),blockAttributeKey:d("BackgroundVideoLink"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("Start Time","qi-blocks"),help:(0,e.__)("Specify a start time (in seconds)","qi-blocks"),value:n.getAttributeValue(d("BackgroundVideoStartTime")),onChange:e=>n.setAttributeValue(d("BackgroundVideoStartTime"),V(e))}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("End Time","qi-blocks"),help:(0,e.__)("Specify an end time (in seconds)","qi-blocks"),value:n.getAttributeValue(d("BackgroundVideoEndTime")),onChange:e=>n.setAttributeValue(d("BackgroundVideoEndTime"),V(e))}),wp.element.createElement(S,{label:(0,e.__)("Play Once","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnce"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(S,{label:(0,e.__)("Play On Mobile","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnMobile"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(Jt,{label:(0,e.__)("Background Fallback","qi-blocks"),blockAttributeKey:d("BackgroundVideoFallbackImage"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p})))};mn.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},includeVideoBG:!1,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const dn=mn,bn=t=>{const n={...t},{attrNameTemplate:o,blockAttributes:r,setAttributes:l,disableWidthDirections:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}=n,m=e=>P(o,e);return n.getAttributeValue=(e,t="")=>{let n=r[e];if(i){let o=e;t&&(o=e+t),n=p({key:u,childKey:o},s)}return U(n)},n.setAttributeValue=(e,t,n="")=>{if(i){let o=e;n&&(o=e+n),c({key:u,childKey:o},t,s)}else l({[e+n]:t})},wp.element.createElement("div",{className:"qodef-border-panel"},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Border Type","qi-blocks"),value:n.getAttributeValue(m("BorderStyle")),options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("None","qi-blocks"),value:"none"},{label:(0,e.__)("Double","qi-blocks"),value:"double"},{label:(0,e.__)("Groove","qi-blocks"),value:"groove"},...F("border_style",!1)],onChange:e=>n.setAttributeValue(m("BorderStyle"),e)}),!["","none"].includes(r[m("BorderStyle")])&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Fe,{label:(0,e.__)("Border Width","qi-blocks"),attrName:m("BorderWidth"),blockAttributes:r,setAttributes:l,allowUnitControl:!1,disableDirections:a,rangeMax:20,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),(n.allowBorderColor??!0)&&wp.element.createElement(en,{label:(0,e.__)("Border Color","qi-blocks"),blockAttributeKey:m("BorderColor"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p})),(n.allowBorderRadius??!0)&&wp.element.createElement(Fe,{label:(0,e.__)("Border Radius","qi-blocks"),attrName:m("BorderRadius"),blockAttributes:r,setAttributes:l,unitType:"pxAndPercent",repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}))};bn.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},allowBorderColor:!0,allowBorderRadius:!0,disableWidthDirections:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const fn=bn,gn=t=>{const n={...t},{attrNameTemplate:o,blockAttributes:r,setAttributes:l,excludeOptions:a}=n,i=e=>P(o,e),[s,u]=(0,we.useState)(!1);let c=["qodef-box-shadow-panel"];return n.popup&&c.push("qodef--has-popup"),s&&c.push("qodef--opened"),n.onClick=()=>{u(e=>!e),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-box-shadow-panel.qodef--opened");t.length&&t.forEach(t=>{t.contains(e.target)||u(!1)})})},wp.element.createElement("div",{className:c.join(" ")},wp.element.createElement("div",{className:"qodef-box-shadow-panel-heading"},n.label&&wp.element.createElement("label",{className:"qodef-option-label"},n.label),n.popup&&wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Open Panel","qi-blocks"),onClick:n.onClick})),wp.element.createElement("div",{className:"qodef-box-shadow-panel-content"},wp.element.createElement(en,{label:(0,e.__)("Color","qi-blocks"),blockAttributeKey:i("BoxShadowColor"),blockAttributes:r,setAttributes:l,popup:!1}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Horizontal","qi-blocks"),value:r[i("BoxShadowHorizontal")],onChange:e=>l({[i("BoxShadowHorizontal")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Vertical","qi-blocks"),value:r[i("BoxShadowVertical")],onChange:e=>l({[i("BoxShadowVertical")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Blur","qi-blocks"),value:r[i("BoxShadowBlur")],onChange:e=>l({[i("BoxShadowBlur")]:e}),min:0,max:100,step:1,allowReset:!0}),wp.element.createElement(_.RangeControl,{label:(0,e.__)("Spread","qi-blocks"),value:r[i("BoxShadowSpread")],onChange:e=>l({[i("BoxShadowSpread")]:e}),min:-100,max:100,step:1,allowReset:!0}),(p="position",!(a&&a.length&&a.includes(p))&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:r[i("BoxShadowPosition")],options:[{label:(0,e.__)("Outline","qi-blocks"),value:""},{label:(0,e.__)("Inset","qi-blocks"),value:"inset"}],onChange:e=>l({[i("BoxShadowPosition")]:e})}))));var p};gn.defaultProps={label:(0,e.__)("Box Shadow","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},excludeOptions:[],popup:!1};const hn=gn;class yn extends we.Component{render(){const{blockAttributes:t,setAttributes:n,excludePanels:o,previewScreen:r,blockName:l}=this.props,a=(e,t="")=>P("",e,t),i=["advanced","motion-effects","background","border","positioning","responsive"];o&&o.length&&o.forEach(e=>{i.splice(i.indexOf(e),1)});let s=D(r);return wp.element.createElement("div",{className:"qodef-advanced-panel"},i.includes("advanced")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Advanced","qi-blocks")},wp.element.createElement(Fe,{label:(0,e.__)("Margin","qi-blocks"),attrName:a("Margin"),blockAttributes:t,setAttributes:n}),wp.element.createElement(Fe,{label:(0,e.__)("Padding","qi-blocks"),attrName:a("Padding"),blockAttributes:t,setAttributes:n}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("Z-Index","qi-blocks"),value:t[a("zIndex")],onChange:e=>n({[a("zIndex")]:V(e)})}),wp.element.createElement(_.TextControl,{label:(0,e.__)("CSS ID","qi-blocks"),value:t[a("cssId")],onChange:e=>n({[a("cssId")]:e})}),wp.element.createElement(_.TextControl,{label:(0,e.__)("CSS Classes","qi-blocks"),value:t[a("cssClasses")],onChange:e=>n({[a("cssClasses")]:e})})),i.includes("motion-effects")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Motion Effects","qi-blocks"),initialOpen:!1},wp.element.createElement(_.SelectControl,{label:(0,e.__)("Entrance Animation","qi-blocks"),value:t[a("EntranceAnimation")],options:[{label:(0,e.__)("None","qi-blocks"),value:""},{label:(0,e.__)("Back In Down","qi-blocks"),value:"backInDown"},{label:(0,e.__)("Back In Left","qi-blocks"),value:"backInLeft"},{label:(0,e.__)("Back In Right","qi-blocks"),value:"backInRight"},{label:(0,e.__)("Back In Up","qi-blocks"),value:"backInUp"},{label:(0,e.__)("Bounce","qi-blocks"),value:"bounce"},{label:(0,e.__)("Bounce In","qi-blocks"),value:"bounceIn"},{label:(0,e.__)("Bounce In Down","qi-blocks"),value:"bounceInDown"},{label:(0,e.__)("Bounce In Left","qi-blocks"),value:"bounceInLeft"},{label:(0,e.__)("Bounce In Right","qi-blocks"),value:"bounceInRight"},{label:(0,e.__)("Bounce In Up","qi-blocks"),value:"bounceInUp"},{label:(0,e.__)("Fade In","qi-blocks"),value:"fadeIn"},{label:(0,e.__)("Fade In Down","qi-blocks"),value:"fadeInDown"},{label:(0,e.__)("Fade In Down Big","qi-blocks"),value:"fadeInDownBig"},{label:(0,e.__)("Fade In Left","qi-blocks"),value:"fadeInLeft"},{label:(0,e.__)("Fade In Left Big","qi-blocks"),value:"fadeInLeftBig"},{label:(0,e.__)("Fade In Right","qi-blocks"),value:"fadeInRight"},{label:(0,e.__)("Fade In Right Big","qi-blocks"),value:"fadeInRightBig"},{label:(0,e.__)("Fade In Up","qi-blocks"),value:"fadeInUp"},{label:(0,e.__)("Fade In Up Big","qi-blocks"),value:"fadeInUpBig"},{label:(0,e.__)("Fade In Top Left","qi-blocks"),value:"fadeInTopLeft"},{label:(0,e.__)("Fade In Top Right","qi-blocks"),value:"fadeInTopRight"},{label:(0,e.__)("Fade In Bottom Left","qi-blocks"),value:"fadeInBottomLeft"},{label:(0,e.__)("Fade In Bottom Right","qi-blocks"),value:"fadeInBottomRight"},{label:(0,e.__)("Flash","qi-blocks"),value:"flash"},{label:(0,e.__)("Flip","qi-blocks"),value:"flip"},{label:(0,e.__)("Flip In X","qi-blocks"),value:"flipInX"},{label:(0,e.__)("Flip In Y","qi-blocks"),value:"flipInY"},{label:(0,e.__)("Head Shake","qi-blocks"),value:"headShake"},{label:(0,e.__)("Heart Beat","qi-blocks"),value:"heartBeat"},{label:(0,e.__)("Jack In The Box","qi-blocks"),value:"jackInTheBox"},{label:(0,e.__)("Jello","qi-blocks"),value:"jello"},{label:(0,e.__)("Light Speed In Right","qi-blocks"),value:"lightSpeedInRight"},{label:(0,e.__)("Light Speed In Left","qi-blocks"),value:"lightSpeedInLeft"},{label:(0,e.__)("Pulse","qi-blocks"),value:"pulse"},{label:(0,e.__)("Roll In","qi-blocks"),value:"rollIn"},{label:(0,e.__)("Rotate In","qi-blocks"),value:"rotateIn"},{label:(0,e.__)("Rotate In Down Left","qi-blocks"),value:"rotateInDownLeft"},{label:(0,e.__)("Rotate In Down Right","qi-blocks"),value:"rotateInDownRight"},{label:(0,e.__)("Rotate In Up Left","qi-blocks"),value:"rotateInUpLeft"},{label:(0,e.__)("Rotate In Up Right","qi-blocks"),value:"rotateInUpRight"},{label:(0,e.__)("Rubber Band","qi-blocks"),value:"rubberBand"},{label:(0,e.__)("Shake X","qi-blocks"),value:"shakeX"},{label:(0,e.__)("Shake Y","qi-blocks"),value:"shakeY"},{label:(0,e.__)("Slide In Down","qi-blocks"),value:"slideInDown"},{label:(0,e.__)("Slide In Left","qi-blocks"),value:"slideInLeft"},{label:(0,e.__)("Slide In Right","qi-blocks"),value:"slideInRight"},{label:(0,e.__)("Slide In Up","qi-blocks"),value:"slideInUp"},{label:(0,e.__)("Swing","qi-blocks"),value:"swing"},{label:(0,e.__)("Tada","qi-blocks"),value:"tada"},{label:(0,e.__)("Wobble","qi-blocks"),value:"wobble"},{label:(0,e.__)("Zoom In","qi-blocks"),value:"zoomIn"},{label:(0,e.__)("Zoom In Down","qi-blocks"),value:"zoomInDown"},{label:(0,e.__)("Zoom In Left","qi-blocks"),value:"zoomInLeft"},{label:(0,e.__)("Zoom In Right","qi-blocks"),value:"zoomInRight"},{label:(0,e.__)("Zoom In Up","qi-blocks"),value:"zoomInUp"}],onChange:e=>{n({[a("EntranceAnimation")]:e}),setTimeout(()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass)},300)}}),void 0!==t[a("EntranceAnimation")]&&""!==t[a("EntranceAnimation")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(_.SelectControl,{label:(0,e.__)("Animation Duration","qi-blocks"),value:t[a("EntranceAnimationDuration")],options:[{label:(0,e.__)("Slower","qi-blocks"),value:"slower"},{label:(0,e.__)("Slow","qi-blocks"),value:"slow"},{label:(0,e.__)("Normal","qi-blocks"),value:"normal"},{label:(0,e.__)("Fast","qi-blocks"),value:"fast"},{label:(0,e.__)("Faster","qi-blocks"),value:"faster"}],onChange:e=>{n({[a("EntranceAnimationDuration")]:e}),setTimeout(()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass)},300)}}),wp.element.createElement(_.TextControl,{type:"number",label:(0,e.__)("Animation Delay (ms)","qi-blocks"),value:t[a("EntranceAnimationDelay")],min:0,step:100,onChange:e=>{n({[a("EntranceAnimationDelay")]:V(e)}),qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass,!0)}}))),i.includes("background")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Background","qi-blocks"),initialOpen:!1},wp.element.createElement(dn,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:n,previewScreen:r})),i.includes("border")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Border","qi-blocks"),initialOpen:!1},wp.element.createElement(fn,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:n}),wp.element.createElement(hn,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:n,popup:!0})),i.includes("positioning")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Positioning","qi-blocks"),initialOpen:!1},wp.element.createElement(He,{label:(0,e.__)("Width","qi-blocks"),blockAttributeKey:a("BlockWidth"),blockAttributes:t,setAttributes:n,selectOptions:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Full Width (100%)","qi-blocks"),value:"full-width"},{label:(0,e.__)("Inline (auto)","qi-blocks"),value:"inline"},{label:(0,e.__)("Custom","qi-blocks"),value:"custom"}]}),(""===s&&"custom"===t[a("BlockWidth")]||""!==s&&"custom"===t[a("BlockWidth",s)]||""!==s&&"custom"===t[a("BlockWidth")]&&["","custom"].includes(t[a("BlockWidth","Tablet")])&&""===t[a("BlockWidth",s)])&&wp.element.createElement(un,{label:(0,e.__)("Custom Width","qi-blocks"),blockAttributeKey:a("BlockCustomWidth"),setAttributes:n,blockAttributes:t,rangeMax:1e3,rangeDecimalMax:100,unitType:"pxPercentVw",allowScreens:!0}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:t[a("BlockPosition")],options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Absolute","qi-blocks"),value:"absolute"},{label:(0,e.__)("Relative","qi-blocks"),value:"relative"},{label:(0,e.__)("Fixed","qi-blocks"),value:"fixed"}],onChange:e=>{n({[a("BlockPosition")]:e})}}),""!==t[a("BlockPosition")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(_.SelectControl,{label:(0,e.__)("Horizontal Orientation","qi-blocks"),value:t[a("PositionHorizontalOrientation")],options:[{label:(0,e.__)("Left","qi-blocks"),value:"left"},{label:(0,e.__)("Right","qi-blocks"),value:"right"}],onChange:e=>n({[a("PositionHorizontalOrientation")]:e})}),wp.element.createElement(un,{label:(0,e.__)("Offset","qi-blocks"),blockAttributeKey:a("PositionHorizontalOffset"),setAttributes:n,blockAttributes:t,rangeMax:1e3,rangeMin:-1e3,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"measure",allowScreens:!0}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Vertical Orientation","qi-blocks"),value:t[a("PositionVerticalOrientation")],options:[{label:(0,e.__)("Top","qi-blocks"),value:"Top"},{label:(0,e.__)("Bottom","qi-blocks"),value:"bottom"}],onChange:e=>n({[a("PositionVerticalOrientation")]:e})}),wp.element.createElement(un,{label:(0,e.__)("Offset","qi-blocks"),blockAttributeKey:a("PositionVerticalOffset"),setAttributes:n,blockAttributes:t,rangeMax:1e3,rangeMin:-1e3,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"measure",allowScreens:!0}))),i.includes("responsive")&&wp.element.createElement(_.PanelBody,{title:(0,e.__)("Responsive","qi-blocks"),initialOpen:!1},wp.element.createElement(I,{blockAttributes:t,setAttributes:n})),qiBlocksEditor.vars?.advancedBlockPanel&&wp.element.createElement(wp.element.Fragment,null,Object.entries(qiBlocksEditor.vars.advancedBlockPanel).map(([t,n],o)=>{let r="";if("help"===t?r=(0,e.__)("Help","qi-blocks"):"features"===t&&(r=(0,e.__)("Get more features","qi-blocks")),n.length<=0||"blocks"===t)return"";const a="help"===t,i=l?l.replace("qi-blocks/",""):"",s=n.map((n,o)=>{let r=n?.link;if(0===o&&"help"===t&&i){const e=qiBlocksEditor.vars.advancedBlockPanel?.blocks[i]||"";e&&e?.demo&&(r=e?.demo+"?utm_source=dash&utm_medium=qiblocks&utm_campaign=blocks")}return wp.element.createElement("div",{className:"qodef-m-item"},n?.image?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("a",{className:"qodef-m-item-image-link",href:n?.link,target:"_blank",rel:"noreferrer"},wp.element.createElement("img",{className:"qodef-m-item-image",src:n.image,alt:n?.title})),wp.element.createElement("p",{className:"qodef-m-item-title"},n?.title),wp.element.createElement("a",{className:"qodef-m-item-button",href:n?.link,target:"_blank",rel:"noreferrer"},(0,e.__)("Upgrade","qi-blocks"))):wp.element.createElement("a",{className:"qodef-m-item-link",href:r,target:"_blank",rel:"noreferrer"},n?.title))});return wp.element.createElement(_.PanelBody,{title:r,className:`qodef-advanced-block-panel-features ${"qodef--"+t} qodef-m`,key:o,initialOpen:a},s)})))}}yn.defaultProps={blockAttributes:{},setAttributes:()=>{},excludePanels:[],previewScreen:"desktop",blockName:""};const vn=(0,a.withSelect)(e=>{let t="desktop";return e("core/edit-post")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post")?.__experimentalGetPreviewDeviceType()?.toLowerCase()),e("core/edit-site")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{previewScreen:t,blockName:e("core/block-editor")?.getSelectedBlock()?.name}})(yn);class kn extends we.Component{getAttributeName(e){const{attrNameTemplate:t}=this.props;return P(t,e)}getAttributeValue(e){const{blockAttributes:t,repeater:n,repeaterItemIndex:o,repeaterItemKey:r,repeaterGetAttributes:l}=this.props;let a=t[e];return n&&(a=l({key:r,childKey:e},o)||{}),U(a)}setAttributeValue(e,t){const{setAttributes:n,repeater:o,repeaterItemIndex:r,repeaterItemKey:l,repeaterSetAttributes:a}=this.props;o?a({key:l,childKey:e},t,r):n({[e]:t})}componentDidMount(){const{allowDefaultGallery:e}=this.props,t=!!this.getAttributeValue(this.getAttributeName("Gallery")).length,n=[];for(let e=0;e<3;e++)n.push({id:null,url:qiBlocksEditor.vars.defaultImage,alt:qiBlocksEditor.vars.defaultImagePlaceholder,caption:"",custom_image_size:""});!t&&e&&this.setAttributeValue(this.getAttributeName("Gallery"),n)}onSelectImage=e=>{this.setAttributeValue(this.getAttributeName("Gallery"),e)};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};updateGallery=()=>{this.setAttributeValue(this.getAttributeName("Gallery"),[])};removeGallery=()=>{this.setAttributeValue(this.getAttributeName("Gallery"),[])};render(){const t={...this.props},{label:n,noticeUI:o}=t,r=this.getAttributeValue(this.getAttributeName("Gallery")),l=!!r.length,a=!!l&&r.some(e=>!e.id&&0===e.url?.indexOf("blob:"));let i=[];return l&&r.map(e=>i.push(e.id)),wp.element.createElement(_.BaseControl,{className:"qodef-gallery-option"},n&&wp.element.createElement("label",{className:"qodef-option-label"},n),l||a?wp.element.createElement("div",{className:"qodef-gallery-option-inner"},a?wp.element.createElement("div",{className:"qodef-image-option-spinner"},wp.element.createElement(_.Spinner,null)):wp.element.createElement(ke.MediaUploadCheck,null,wp.element.createElement(ke.MediaUpload,{allowedTypes:["image"],value:i,multiple:!0,onSelect:this.onSelectImage,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:"qodef-gallery-option-images"},r.map(e=>wp.element.createElement("img",{src:e.url,alt:e.alt}))),wp.element.createElement("div",{className:"qodef-gallery-option-actions"},wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Gallery","qi-blocks"),onClick:t}),wp.element.createElement(_.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Gallery","qi-blocks"),onClick:this.removeGallery})))}))):wp.element.createElement(ke.MediaPlaceholder,{allowedTypes:["image"],multiple:!0,icon:"format-gallery",labels:{title:n||(0,e.__)("Gallery","qi-blocks")},onSelect:this.onSelectImage,onError:this.onUploadError,notices:o}))}}kn.defaultProps={label:(0,e.__)("Gallery","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},allowDefaultGallery:!1,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const _n=(0,_.withNotices)(kn);class wn extends we.Component{render(){const{attrNameTemplate:t,blockAttributes:n,setAttributes:o,allowColumnsGap:r,allowColumnsGapSlider:l,allowColumnsResponsive:a,columnsMinNumber:i,columnsMaxNumber:s}=this.props,u=e=>P(t,e);return wp.element.createElement(_.BaseControl,null,wp.element.createElement(un,{label:(0,e.__)("Number of Columns","qi-blocks"),blockAttributeKey:u("Columns"),setAttributes:o,blockAttributes:n,rangeMax:s,rangeMin:i,allowUnits:!1}),r&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Columns Gap","qi-blocks"),options:F("column_gap",!1),value:n[u("ColumnsGap")]||"",onChange:e=>o({[u("ColumnsGap")]:e})}),l&&wp.element.createElement(un,{label:(0,e.__)("Space Between Items","qi-blocks"),blockAttributeKey:u("SpaceBetweenItems"),setAttributes:o,blockAttributes:n,rangeMax:150,rangeMin:0,rangeStep:1,allowScreens:!0,unitType:"pxEmVw"}),a&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Columns Responsive","qi-blocks"),options:F("columns_responsive",!1),value:n[u("ColumnsResponsive")]||"",onChange:e=>o({[u("ColumnsResponsive")]:e})}),a&&"custom"===n[u("ColumnsResponsive")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(un,{label:(0,e.__)("Number of Columns 1367px - 1440px","qi-blocks"),blockAttributeKey:u("Columns1440"),setAttributes:o,blockAttributes:n,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(un,{label:(0,e.__)("Number of Columns 1025px - 1366px","qi-blocks"),blockAttributeKey:u("Columns1366"),setAttributes:o,blockAttributes:n,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(un,{label:(0,e.__)("Number of Columns 769px - 1024px","qi-blocks"),blockAttributeKey:u("Columns1024"),setAttributes:o,blockAttributes:n,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(un,{label:(0,e.__)("Number of Columns 681px - 768px","qi-blocks"),blockAttributeKey:u("Columns768"),setAttributes:o,blockAttributes:n,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(un,{label:(0,e.__)("Number of Columns 481px - 680px","qi-blocks"),blockAttributeKey:u("Columns680"),setAttributes:o,blockAttributes:n,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(un,{label:(0,e.__)("Number of Columns 0 - 480px","qi-blocks"),blockAttributeKey:u("Columns480"),setAttributes:o,blockAttributes:n,rangeMax:s,rangeMin:i,allowUnits:!1})))}}wn.defaultProps={attrNameTemplate:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},allowColumnsGap:!0,allowColumnsGapSlider:!1,allowColumnsResponsive:!0,columnsMinNumber:1,columnsMaxNumber:6};const Sn=wn,An=e=>{const{blockAttributes:t}=e,n=L(e,"all")&&e.attrNameTemplate||"",o=!L(e,"all")||(e.allowColumnsGap??!0);return Ae()("qodef-gutenberg-section","qodef--columns",{[`qodef-col-num--${t[P(n,"Columns")]}`]:t[P(n,"Columns")],[`qodef-gutter--${t[P(n,"ColumnsGap")]}`]:o&&t[P(n,"ColumnsGap")],[`qodef-responsive--${t[P(n,"ColumnsResponsive")]}`]:t[P(n,"ColumnsResponsive")],[`qodef-col-num--1440--${t[P(n,"Columns1440")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns1440")],[`qodef-col-num--1366--${t[P(n,"Columns1366")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns1366")],[`qodef-col-num--1024--${t[P(n,"Columns1024")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns1024")],[`qodef-col-num--768--${t[P(n,"Columns768")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns768")],[`qodef-col-num--680--${t[P(n,"Columns680")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns680")],[`qodef-col-num--480--${t[P(n,"Columns480")]}`]:"custom"===t[P(n,"ColumnsResponsive")]&&t[P(n,"Columns480")]})};An.defaultProps={attrNameTemplate:"",allowColumnsGap:!0};var In=n(2243),xn=n.n(In);let Cn=[];const qn=qiBlocksEditor.vars.systemFontOptions,En=e=>{let t=!0;return e||(t=!1),qn&&qn.map(({value:e})=>e).forEach(n=>{""!==n&&e===n&&(t=!1)}),t},Tn=e=>{if(qiBlocksEditor.qodefGetCurrentBlockElement.getIframe()&&(Cn=[]),Cn.includes(e))return;const t=qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument();if(t&&En(e)){const n=t.createElement("link");n.setAttribute("href",(e=>`https://fonts.googleapis.com/css?family=${e.replace(/ /g,"+")}:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&subset=latin-ext`)(e)),n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),t.querySelector("head").appendChild(n)}Cn.push(e)},On=qiBlocksEditor.vars.fontOptions,Pn=e=>{const t=e.trim().toLowerCase(),n=t.length;return 0===n?[]:On.filter(e=>!["System","Google"].includes(e.value)&&e.label.toLowerCase().slice(0,n)===t)},Nn=e=>e.value,Dn=e=>wp.element.createElement("div",{className:"qodef-font-family-autosuggest-option","data-label":e.value},e.label);class Rn extends we.Component{constructor(){super(...arguments),this.state={value:"",suggestions:[]}}onChange=(e,{newValue:t})=>{let n=t;["System","Google"].includes(n)||(On.some(e=>e.value.toLowerCase()===n.toLowerCase()&&(n=e.value,Tn(n),!0)),this.props.setAttributes({[this.props.blockAttributeKey]:n}),this.setState({value:n}))};onSuggestionsFetchRequested=({value:e})=>{this.setState({suggestions:""===e?On:Pn(e)})};onSuggestionsClearRequested=()=>{this.setState({suggestions:[]})};shouldRenderSuggestions(){return!0}componentDidMount(){""!==this.props.blockAttributes.length&&this.setState({value:this.props.blockAttributes[this.props.blockAttributeKey]||"",suggestions:On})}render(){const{label:e}=this.props,{value:t,suggestions:n}=this.state,o={value:t,type:"search",onChange:this.onChange};return wp.element.createElement(_.BaseControl,{className:"qodef-font-family-option"},wp.element.createElement("label",{className:"qodef-option-label"},e),wp.element.createElement("div",{className:"qodef-font-family-autosuggest"},wp.element.createElement(xn(),{suggestions:n,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,shouldRenderSuggestions:this.shouldRenderSuggestions,getSuggestionValue:Nn,renderSuggestion:Dn,inputProps:o})))}}Rn.defaultProps={label:(0,e.__)("Font Family","qi-blocks"),blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{}};const Bn=Rn,Mn=t=>{const n={...t},{attrNameTemplate:o,blockAttributes:r,setAttributes:l,popup:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p,allowReset:m}=n,[d,b]=(0,we.useState)(!1);let f=["qodef-typography-panel"];a?f.push("qodef--has-popup"):f.push("qodef-base-section-label"),d&&f.push("qodef--opened"),n.onClick=()=>{b(e=>!e),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-typography-panel.qodef--opened");t.length&&t.forEach(t=>{t.contains(e.target)||b(!1)})})};const g=e=>P(o,e);return n.getAttributeValue=e=>{let t=r[e];return i&&(t=p({key:u,childKey:e},s)),U(t)},n.setAttributeValue=(e,t)=>{i?c({key:u,childKey:e},t,s):l({[e]:t})},wp.element.createElement(_.BaseControl,{label:a?"":n.label,className:f.join(" ")},a&&wp.element.createElement("div",{className:"qodef-typography-panel-heading"},wp.element.createElement("label",{className:"qodef-option-label"},n.label),wp.element.createElement(_.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Open Typography","qi-blocks"),onClick:n.onClick})),wp.element.createElement("div",{className:"qodef-typography-panel-content"},wp.element.createElement(Bn,{setAttributes:l,blockAttributes:r,blockAttributeKey:g("FontFamily"),repeater:i,repeaterItemIndex:s,repeaterItemKey:u,repeaterSetAttributes:c,repeaterGetAttributes:p}),wp.element.createElement(un,{label:(0,e.__)("Font Size","qi-blocks"),blockAttributeKey:g("FontSize"),setAttributes:l,blockAttributes:r,rangeDecimalMax:20,allowScreens:!0,allowUnitsConvertor:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,isSimpleRepeaterValue:!0,repeaterSetAttributes:c,repeaterGetAttributes:p,allowReset:m}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Weight","qi-blocks"),options:F("font_weight"),value:n.getAttributeValue(g("FontWeight")),onChange:e=>n.setAttributeValue(g("FontWeight"),e)}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Transform","qi-blocks"),options:F("text_transform"),value:n.getAttributeValue(g("TextTransform")),onChange:e=>n.setAttributeValue(g("TextTransform"),e)}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Style","qi-blocks"),options:F("font_style"),value:n.getAttributeValue(g("FontStyle")),onChange:e=>n.setAttributeValue(g("FontStyle"),e)}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Decoration","qi-blocks"),options:F("text_decoration"),value:n.getAttributeValue(g("TextDecoration")),onChange:e=>n.setAttributeValue(g("TextDecoration"),e)}),wp.element.createElement(un,{label:(0,e.__)("Line Height","qi-blocks"),setAttributes:l,blockAttributes:r,blockAttributeKey:g("LineHeight"),allowScreens:!0,allowUnitsConvertor:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,isSimpleRepeaterValue:!0,repeaterSetAttributes:c,repeaterGetAttributes:p,allowReset:m}),wp.element.createElement(un,{label:(0,e.__)("Letter Spacing","qi-blocks"),setAttributes:l,blockAttributes:r,blockAttributeKey:g("LetterSpacing"),rangeMin:-10,rangeMax:30,rangeStep:.1,rangeDecimalMin:-10,unitType:"pxEmRem",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:u,isSimpleRepeaterValue:!0,repeaterSetAttributes:c,repeaterGetAttributes:p,allowReset:m})))};Mn.defaultProps={label:(0,e.__)("Typography","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},popup:!1,allowReset:!0,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const jn=Mn,Vn=e=>{const{attrNameTemplate:t,attributes:n}=e,o=(e,n)=>P(t,e,n);if(!n)return{};let r={},l={},a={};return n[o("FontFamily")]&&(r.fontFamily=`'${n[o("FontFamily")]}'`),n[o("FontWeight")]&&(r.fontWeight=n[o("FontWeight")]),n[o("TextTransform")]&&(r.textTransform=n[o("TextTransform")]),n[o("FontStyle")]&&(r.fontStyle=n[o("FontStyle")]),n[o("TextDecoration")]&&(r.textDecoration=n[o("TextDecoration")]),Object.entries(y).map(([e])=>{let t=D(e),i={};(n[o("FontSize",t)]||n[o("FontSizeDecimal",t)])&&(M(n[o("FontSizeUnit",t)])&&n[o("FontSize",t)]?i.fontSize=parseInt(n[o("FontSize",t)],10)+n[o("FontSizeUnit",t)]:j(n[o("FontSizeUnit",t)])&&n[o("FontSizeDecimal",t)]&&(i.fontSize=parseFloat(n[o("FontSizeDecimal",t)])+n[o("FontSizeUnit",t)])),(n[o("LineHeight",t)]||n[o("LineHeightDecimal",t)])&&(M(n[o("LineHeightUnit",t)])&&n[o("LineHeight",t)]?i.lineHeight=parseInt(n[o("LineHeight",t)],10)+n[o("LineHeightUnit",t)]:j(n[o("LineHeightUnit",t)])&&n[o("LineHeightDecimal",t)]&&(i.lineHeight=parseFloat(n[o("LineHeightDecimal",t)])+n[o("LineHeightUnit",t)])),""===U(n[o("LetterSpacing",t)])&&""===U(n[o("LetterSpacingDecimal",t)])||(M(n[o("LetterSpacingUnit",t)])&&""!==U(n[o("LetterSpacing",t)])?i.letterSpacing=parseInt(n[o("LetterSpacing",t)],10)+n[o("LetterSpacingUnit",t)]:j(n[o("LetterSpacingUnit",t)])&&""!==U(n[o("LetterSpacingDecimal",t)])&&(i.letterSpacing=parseFloat(n[o("LetterSpacingDecimal",t)])+n[o("LetterSpacingUnit",t)])),Object.keys(i).length>0&&Object.entries(i).map(([t,n])=>{switch(e){case"desktop":r[t]=n;break;case"tablet":l[t]=n;break;case"mobile":a[t]=n}})}),{desktop:r,tablet:l,mobile:a}},Ln=(0,_e.createHigherOrderComponent)(e=>class extends we.Component{static defaultProps={attributes:{}};componentDidMount(){(e=>{Object.keys(e).filter(e=>e.match(/fontfamily/i)).forEach(t=>{const n=e[t];n&&setTimeout(()=>{Tn(n)},400)})})(this.props.attributes)}render(){return wp.element.createElement(e,this.props)}},"withGoogleFont"),Un=Ln,Fn=(0,_e.createHigherOrderComponent)(e=>class extends we.Component{static defaultProps={clientId:"",attributes:{},setAttributes:()=>{}};componentDidMount(){const{clientId:e,attributes:t,setAttributes:n}=this.props;t.uniqueClass||n({uniqueClass:this.getNewUniqueClass(e)}),this.reInitUniqueClass(!0)}getNewUniqueClass(e){let t="qodef-block-";return this.props.isFullSiteEditor?t="qodef-template-block-":"widget"===this.props.postID&&(t="qodef-widget-block-"),`${t}${e.substring(0,8)}`}hasParent(e,t){let n=!1,o=e?.parentNode;for(;o;){let e=o;if(e&&e?.classList?.contains(t)){n=!0;break}if(!e?.parentNode)break;o=e.parentNode}return n}reInitUniqueClass(e){const{clientId:t,attributes:n,setAttributes:o,isFullSiteEditor:r}=this.props,{uniqueClass:l}=n,a=qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument(),i=this.getNewUniqueClass(t);let s=!1;if(r){if(l.includes("qodef-block")||l.includes("qodef-widget")){const e=a.querySelector(`.${l}`);if(e){this.hasParent(e,"wp-block-post-content")||(s=!0)}}e&&a.addEventListener("paste",()=>{s=!0})}!r&&l.includes("qodef-template-block")&&(s=!0),""!==l&&l!==i&&a.querySelectorAll(`.${l}`).length>1&&(s=!0),s&&o({uniqueClass:i})}render(){return this.reInitUniqueClass(),wp.element.createElement(e,this.props)}},"withUniqueClass"),zn=Fn;function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Hn.apply(null,arguments)}let Gn=[],Kn={family:[],weight:[],style:[]};const $n=e=>{let t="";return Object.entries(e).map(([e,n])=>{if(e.match(/fontfamily/i)){const e=n.replace(/["']/g,"");!Gn.includes(e)&&En(e)&&(Kn.family.push(e),Gn.push(e))}e.match(/fontweight/i)&&Kn.weight.push(parseInt(n,10)),e.match(/fontstyle/i)&&Kn.style.push(n),t+=`${e.replace(/([A-Z])/g,(e,t,n)=>(n>0?"-":"")+e.toLowerCase())}: ${n};`}),t},Wn=(0,_e.createHigherOrderComponent)(e=>class extends we.Component{addPageStyle(e){if(e){const t=this.postID;let n=this.getPageStyles||[],o={key:this.attributes.uniqueClass,values:[],fonts:[]};Gn=[],Kn={family:[],weight:[],style:[]},e.forEach((r,l)=>{if(!Object.values(r.styles).every(e=>0===Object.keys(e).length)){const e=["widget","template"].includes(t)?"":`body[class*="-${t}"]`,n=`${e} ${r.selector}`,l=[];"string"!=typeof r.selector&&r.selector.forEach(t=>{t&&l.push(`${e} ${t}`)}),o.values.push({selector:l.length>1?l.join(","):n,styles:$n(r.styles.desktop||""),tablet_styles:$n(r.styles.tablet||""),mobile_styles:$n(r.styles.mobile||""),custom_styles:r.custom_styles||[]}),o.fonts=Kn}if(l===e.length-1)if(n&&n.length){let e=!1;n.map((t,r)=>{t.key===o.key&&(e=!0,o.values.length?ve()(t.values,o.values)||(n[r].values=o.values,n[r].fonts=o.fonts):(n[r].values=[],n[r].fonts={family:[],weight:[],style:[]}))}),!e&&o.values.length&&n.push(o)}else"object"==typeof n&&Object.keys(n).length?(n=Object.values(n),n.push(o)):n.push(o);const a=n.filter(e=>e.values.length);qiBlocksEditor.vars.currentPageID=t,qiBlocksEditor.vars.currentPageStyles=a})}}render(){return wp.element.createElement(e,Hn({},this.props,{addPageStyle:this.addPageStyle}))}},"withStyles"),Yn=(0,_e.compose)((0,a.withSelect)(e=>{let t=e("core/editor")?.getCurrentPostId()||"widget";const n=!!e("core/edit-site");let o="desktop";return e("core/edit-post")&&(o="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post")?.__experimentalGetPreviewDeviceType()?.toLowerCase()),n&&(t="template",o="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{previewScreen:o,postID:t,getPageStyles:e("qi-blocks/data/with-styles").getOptions(t).data,isFullSiteEditor:n}}),zn,Wn);class Xn extends we.Component{constructor(){super(...arguments),this.state={updatedGalleryFlag:!1}}componentDidMount(){this.initBlockScript("reinit")}componentDidUpdate(e){ve()(e.attributes,this.props.attributes)||this.initBlockScript("update")}initBlockScript(e){const{attributes:t}=this.props;"object"==typeof qiBlocksEditor.qodefLightboxPopup&&qiBlocksEditor.qodefLightboxPopup.initItem(t.uniqueClass,e),"object"==typeof qiBlocksEditor.qodefFollowInfo&&"follow-info"===t.imageHover&&t.gallery&&t.gallery.length>0&&qiBlocksEditor.qodefFollowInfo.init()}render(){const{attributes:t,setAttributes:n,previewScreen:o,updatedGalleryWithCaption:r}=this.props,{updatedGalleryFlag:l}=this.state,{uniqueClass:a,gallery:i,enableCustomLinks:s,customLinks:u,customLinksTarget:c,enablePopup:p,imageHover:m,imageZoomOrigin:d,galleryData:b}=t;r&&r.length>0&&!l&&(n({gallery:r}),this.setState({updatedGalleryFlag:!0}));const f=E(t),g=Be({blockAttributes:t});let h={className:C(t),style:R(g,o),...q(t)};f&&(h.id=f);let v=An({blockAttributes:t,allowColumnsGap:!1}),k=""!==u?u.split(","):[];const w=Ae()(T("image-gallery",this.props),{"qi-block-fslightbox-popup qodef-popup-gallery":p,[`qodef-image--hover-${m}`]:m,[`qodef-image--hover-from-${d}`]:["zoom","zoom-out"].includes(m)&&d});t.galleryData=b&&""!==b?b:"gallery-"+Math.floor(1001*Math.random());const A=(e=>{const{attributes:t,attrNameTemplate:n,previewScreen:o}=e,r=(e,t)=>P(n,e,t);let l=t.uniqueClass,a={},i={},s={},u={pageStyle:[],editorStyle:""};Object.entries(y).map(([e])=>{let n=D(e),o={};""===t[r("SpaceBetweenItems",n)]&&""===t[r("SpaceBetweenItemsDecimal",n)]||(M(t[r("SpaceBetweenItemsUnit",n)])&&""!==U(t[r("SpaceBetweenItems",n)])?o["--qi-blocks-columns-gap"]=parseInt(t[r("SpaceBetweenItems",n)],10)+t[r("SpaceBetweenItemsUnit",n)]:j(t[r("SpaceBetweenItemsUnit",n)])&&""!==U(t[r("SpaceBetweenItemsDecimal",n)])&&(o["--qi-blocks-columns-gap"]=parseFloat(t[r("SpaceBetweenItemsDecimal",n)])+t[r("SpaceBetweenItemsUnit",n)])),Object.keys(o).length>0&&Object.entries(o).map(([t,n])=>{switch(e){case"desktop":a[t]=n;break;case"tablet":i[t]=n;break;case"mobile":s[t]=n}})});const c={desktop:a,tablet:i,mobile:s};return u.pageStyle.push({selector:`.${l} .qodef-gutenberg-section`,styles:c}),u.editorStyle+=B(R(c,o))&&`.${l} .qodef-gutenberg-section.qodef--columns, \n\t\t.${l} .qodef-gutenberg-section.qodef-gutenberg-masonry-layout {\n\t\t\t${B(R(c,o),!1)}\n\t\t}`,u})({attributes:t,previewScreen:o}),I=z({attributes:t,blockAttrName:"imageBorderRadius",cssProp:"borderRadius"}),x=z({attributes:t,blockAttrName:"overlayColor",cssProp:"backgroundColor"}),O=z({attributes:t,blockAttrName:"overlayHoverColor",cssProp:"backgroundColor"}),N=z({attributes:t,blockAttrName:"captionBoxBackgroundColor",cssProp:"backgroundColor"}),V=xe({blockAttributes:t,attrNameTemplate:"CaptionBox",attrName:"Padding"}),L=pe()(N,V),H=z({attributes:t,blockAttrName:"captionLabelColor",cssProp:"color"}),G=Vn({attrNameTemplate:"CaptionLabel",attributes:t}),K=pe()(H,G),$=z({attributes:t,blockAttrName:"captionLabelHoverColor",cssProp:"color"});this.props.addPageStyle([{selector:`.${a}.qodef-block-container`,styles:g},{selector:`.${a} .qi-block-image-gallery`,styles:{}},{selector:`.${a} .qi-block-image-gallery .qodef-e-inner`,styles:I},{selector:`.${a} .qi-block-image-gallery .qodef-e-inner:after`,styles:x},{selector:`.${a} .qi-block-image-gallery .qodef-e:hover .qodef-e-inner:after`,styles:O},{selector:`.${a} .qi-block-image-gallery .qodef-e-content`,styles:L},{selector:`.${a} .qi-block-image-gallery .qodef-e-content-label`,styles:K},{selector:`.${a} .qi-block-image-gallery .qodef-e-content-label:hover`,styles:$},...A.pageStyle]);const W=e=>wp.element.createElement("img",{className:"qodef-e-image "+(e.id?`wp-image-${e.id}`:""),src:e.url,alt:e.alt}),Y=e=>["caption-info-box","caption-in-middle","follow-info"].includes(m)&&e?.caption&&wp.element.createElement("div",{className:"qodef-e-content"},wp.element.createElement("h4",{className:"qodef-e-content-label"},e.caption));return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(ke.InspectorControls,null,wp.element.createElement(_.TabPanel,{className:"qodef-tab-panel qodef--image-gallery",activeClass:"qodef--active",tabs:[{name:"content",title:(0,e.__)("Content","qi-blocks")},{name:"style",title:(0,e.__)("Style","qi-blocks")},{name:"advanced",title:(0,e.__)("Advanced","qi-blocks")}]},o=>wp.element.createElement(wp.element.Fragment,null,"content"===o.name&&wp.element.createElement(_.BaseControl,{className:"qodef-base-control-container"},wp.element.createElement(_n,{blockAttributes:t,setAttributes:n,allowDefaultGallery:!0}),wp.element.createElement(S,{label:(0,e.__)("Enable Custom Links","qi-blocks"),blockAttributeKey:"enableCustomLinks",blockAttributes:t,setAttributes:n}),s&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(_.TextareaControl,{label:(0,e.__)("Custom Links","qi-blocks"),value:u,onChange:e=>n({customLinks:e}),help:(0,e.__)("Enter links for gallery images, separated by comma","qi-blocks")}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Custom Links Target","qi-blocks"),value:c,options:F("link_target"),onChange:e=>n({customLinksTarget:e})})),!s&&wp.element.createElement(S,{label:(0,e.__)("Enable Lightbox Popup","qi-blocks"),blockAttributeKey:"enablePopup",blockAttributes:t,setAttributes:n}),wp.element.createElement(Sn,{blockAttributes:t,setAttributes:n,allowColumnsGap:!1,allowColumnsGapSlider:!0,columnsMaxNumber:8}),wp.element.createElement(_.SelectControl,{label:(0,e.__)("Image Hover","qi-blocks"),value:m,options:[{value:"",label:(0,e.__)("None","qi-blocks")},{value:"zoom",label:(0,e.__)("Zoom","qi-blocks")},{value:"zoom-out",label:(0,e.__)("Zoom Out","qi-blocks")},{value:"move",label:(0,e.__)("Move","qi-blocks")},{value:"caption-info-box",label:(0,e.__)("Caption Info Box","qi-blocks")},{value:"caption-in-middle",label:(0,e.__)("Caption in Middle","qi-blocks")},{value:"follow-info",label:(0,e.__)("Caption Follow Info","qi-blocks")}],onChange:e=>n({imageHover:e})}),["zoom","zoom-out"].includes(m)&&wp.element.createElement(_.SelectControl,{label:(0,e.__)("Image Hover Zoom Origin","qi-blocks"),value:d,options:[{value:"",label:(0,e.__)("Center","qi-blocks")},{value:"top",label:(0,e.__)("Top","qi-blocks")},{value:"bottom",label:(0,e.__)("Bottom","qi-blocks")},{value:"left",label:(0,e.__)("Left","qi-blocks")},{value:"right",label:(0,e.__)("Right","qi-blocks")}],onChange:e=>n({imageZoomOrigin:e})})),"style"===o.name&&wp.element.createElement(_.BaseControl,{className:"qodef-base-control-container"},wp.element.createElement(un,{label:(0,e.__)("Image Border Radius","qi-blocks"),blockAttributeKey:"imageBorderRadius",blockAttributes:t,setAttributes:n,rangeDecimalMax:100,unitType:"space",allowScreens:!0}),wp.element.createElement(en,{label:(0,e.__)("Overlay Color","qi-blocks"),blockAttributeKey:"overlayColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(en,{label:(0,e.__)("Overlay Hover Color","qi-blocks"),blockAttributeKey:"overlayHoverColor",blockAttributes:t,setAttributes:n}),["caption-info-box","caption-in-middle","follow-info"].includes(m)&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(en,{label:(0,e.__)("Caption Box Background Color","qi-blocks"),blockAttributeKey:"captionBoxBackgroundColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(Fe,{label:(0,e.__)("Caption Box Padding","qi-blocks"),setAttributes:n,blockAttributes:t,attrNameTemplate:"CaptionBox",attrName:"Padding",rangeMax:150}),wp.element.createElement(en,{label:(0,e.__)("Caption Color","qi-blocks"),blockAttributeKey:"captionLabelColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(en,{label:(0,e.__)("Caption Hover Color","qi-blocks"),blockAttributeKey:"captionLabelHoverColor",blockAttributes:t,setAttributes:n}),wp.element.createElement(jn,{label:(0,e.__)("Caption Typography","qi-blocks"),attrNameTemplate:"CaptionLabel",blockAttributes:t,setAttributes:n,popup:!0}))),"advanced"===o.name&&wp.element.createElement(vn,{blockAttributes:t,setAttributes:n})))),wp.element.createElement("style",null,A.editorStyle,B(R(I,o))&&`.${a} .qi-block-image-gallery .qodef-e-inner {\n ${B(R(I,o))}\n }`,B(R(x,o))&&`.${a} .qi-block-image-gallery .qodef-e-inner:after {\n ${B(R(x,o))}\n }`,B(R(O,o))&&`.${a} .qi-block-image-gallery .qodef-e:hover .qodef-e-inner:after {\n ${B(R(O,o))}\n }`,B(R(L,o))&&`.${a} .qi-block-image-gallery .qodef-e-content {\n ${B(R(L,o))}\n }`,B(R(K,o))&&`.${a} .qi-block-image-gallery .qodef-e-content-label {\n ${B(R(K,o))}\n }`,B(R($,o))&&`.${a} .qi-block-image-gallery .qodef-e-content-label:hover {\n ${B(R($,o))}\n }`),wp.element.createElement("div",h,wp.element.createElement("div",{className:w},i&&i.length>0&&wp.element.createElement("div",{className:v},wp.element.createElement("div",{className:"qodef-gutenberg-row"},i.map((e,t)=>wp.element.createElement("div",{key:t,className:"qodef-gutenberg-column qodef-e qodef-image-wrapper"},wp.element.createElement("div",{className:"qodef-gutenberg-column-inner qodef-e-inner"},p&&!s&&wp.element.createElement("a",{className:"qodef-popup-item",href:e?.url,"data-type":"image","data-fslightbox":b},W(e),Y(e)),s&&k[t]&&wp.element.createElement("a",{href:k[t].trim(),target:c||"_blank",rel:"noreferrer noopener"},W(e),Y(e)),(s&&!k[t]||!s&&!p)&&wp.element.createElement("div",{className:"qodef-e-image-holder"},W(e),Y(e))))))))))}}Xn.defaultProps={previewScreen:h};const Zn=(0,_e.compose)(Yn,Un,(0,a.withSelect)((e,t)=>{const{attributes:n}=t,{imageHover:o,gallery:r}=n;let l=!1,a=[];return["caption-info-box","caption-in-middle","follow-info"].includes(o)&&r&&r.length>0&&r.map(t=>{const{id:n,caption:o}=t,r=e("core")?.getMedia(n);r&&r?.caption?.raw&&o!==r?.caption?.raw&&(t.caption=r?.caption?.raw,l=!0),a.push(t)}),{updatedGalleryWithCaption:l?a:[]}}))(Xn);class Jn extends we.Component{render(){const{attributes:e}=this.props,{gallery:t,enableCustomLinks:n,customLinks:o,customLinksTarget:r,enablePopup:l,imageHover:a,imageZoomOrigin:i,galleryData:s}=e;let u=An({blockAttributes:e,allowColumnsGap:!1}),c=""!==o?o.split(","):[];const p=E(e);let m={className:C(e),...q(e)};p&&(m.id=p);const d=Ae()(T("image-gallery",this.props),{"qi-block-fslightbox-popup qodef-popup-gallery":l,[`qodef-image--hover-${a}`]:a,[`qodef-image--hover-from-${i}`]:["zoom","zoom-out"].includes(a)&&i}),b=e=>wp.element.createElement("img",{className:"qodef-e-image "+(e.id?`wp-image-${e.id}`:""),src:e.url,alt:e.alt}),f=e=>["caption-info-box","caption-in-middle","follow-info"].includes(a)&&e?.caption&&wp.element.createElement("div",{className:"qodef-e-content"},wp.element.createElement("h4",{className:"qodef-e-content-label"},e.caption));return wp.element.createElement("div",m,wp.element.createElement("div",{className:d},t&&t.length>0&&wp.element.createElement("div",{className:u},wp.element.createElement("div",{className:"qodef-gutenberg-row"},t.map((e,t)=>wp.element.createElement("div",{key:t,className:"qodef-gutenberg-column qodef-e qodef-image-wrapper"},wp.element.createElement("div",{className:"qodef-gutenberg-column-inner qodef-e-inner"},l&&!n&&wp.element.createElement("a",{className:"qodef-popup-item",href:e?.url,"data-type":"image","data-fslightbox":s},b(e),f(e)),n&&c[t]&&wp.element.createElement("a",{href:c[t].trim(),target:r||"_blank",rel:"noreferrer noopener"},b(e),f(e)),(n&&!c[t]||!n&&!l)&&wp.element.createElement("div",{className:"qodef-e-image-holder"},b(e),f(e)))))))))}}const Qn=Jn,eo={attributes:{gallery:[{id:null,url:qiBlocksEditor.vars.defaultThumbnail,alt:qiBlocksEditor.vars.defaultImagePlaceholder,custom_image_size:""},{id:null,url:qiBlocksEditor.vars.defaultThumbnail,alt:qiBlocksEditor.vars.defaultImagePlaceholder,custom_image_size:""},{id:null,url:qiBlocksEditor.vars.defaultThumbnail,alt:qiBlocksEditor.vars.defaultImagePlaceholder,custom_image_size:""}]}},to={from:[{type:"block",blocks:["qi-blocks/image-gallery-masonry"],transform:e=>{let t=[];return e.gallery.map(e=>{t.push(e.itemImage)}),H("qi-blocks/image-gallery",e,{...e,gallery:t})}},{type:"block",blocks:["qi-blocks/image-gallery-pinterest"],transform:e=>H("qi-blocks/image-gallery",e,{...e})},{type:"block",blocks:["qi-blocks/image-slider"],transform:e=>H("qi-blocks/image-gallery",e,{...e,columns:e.sliderColumns})}],to:[{type:"block",blocks:["qi-blocks/image-gallery-masonry"],transform:e=>{let t=[];return e.gallery.map(e=>{t.push({itemImage:e,itemLink:{}})}),H("qi-blocks/image-gallery-masonry",e,{...e,gallery:t})}},{type:"block",blocks:["qi-blocks/image-gallery-pinterest"],transform:e=>H("qi-blocks/image-gallery-pinterest",e,{...e})},{type:"block",blocks:["qi-blocks/image-slider"],transform:e=>H("qi-blocks/image-slider",e,{...e,sliderColumns:e.columns})}]};var no=n(5072),oo=n.n(no),ro=n(7825),lo=n.n(ro),ao=n(7659),io=n.n(ao),so=n(5056),uo=n.n(so),co=n(540),po=n.n(co),mo=n(1113),bo=n.n(mo),fo=n(7560),go={};go.styleTagTransform=bo(),go.setAttributes=uo(),go.insert=io().bind(null,"head"),go.domAPI=lo(),go.insertStyleElement=po();oo()(fo.A,go);fo.A&&fo.A.locals&&fo.A.locals;var ho,yo;function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vo.apply(null,arguments)}const ko=e=>s.createElement("svg",vo({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:24,height:24},e),ho||(ho=s.createElement("path",{fill:"none",stroke:"#EE2852",strokeMiterlimit:10,d:"M.516 1.531h22v20.97h-22zM11.516 1.237v21.558"})),yo||(yo=s.createElement("path",{fill:"none",stroke:"#EE2A53",strokeMiterlimit:10,d:"M.167 8.458h22.255M22.422 15.547H.167"})));(0,t.registerBlockType)("qi-blocks/image-gallery",{icon:wp.element.createElement(ko,null),title:(0,e.__)("Image Gallery","qi-blocks"),description:(0,e.__)("A simple way to display your images in easily configurable eye-catching galleries.","qi-blocks"),category:"qi-blocks",keywords:[(0,e.__)("image","qi-blocks"),(0,e.__)("gallery","qi-blocks"),(0,e.__)("showcase","qi-blocks"),(0,e.__)("image hover","qi-blocks"),(0,e.__)("lightbox popup","qi-blocks"),(0,e.__)("image columns","qi-blocks"),(0,e.__)("qi","qi-blocks")],attributes:he,example:eo,edit:Zn,save:Qn,transforms:to})})()})();